[mob] make function private

This commit is contained in:
ashilkn 2024-04-13 17:15:13 +05:30
parent 2c0148d661
commit 75dd7c3e48

View file

@ -63,11 +63,11 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
value: toggleValue ?? false,
onChanged: onChanged,
onChanged: _onChanged,
)
: CupertinoSwitch(
value: toggleValue ?? false,
onChanged: onChanged,
onChanged: _onChanged,
),
),
),
@ -105,7 +105,7 @@ class _ToggleSwitchWidgetState extends State<ToggleSwitchWidget> {
}
}
Future<void> onChanged(bool negationOfToggleValue) async {
Future<void> _onChanged(bool negationOfToggleValue) async {
setState(() {
toggleValue = negationOfToggleValue;
//start showing inProgress statu icons if toggle takes more than debounce time