From 75dd7c3e48b677c9f9ef3b3119e5512bfcb5ea76 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Sat, 13 Apr 2024 17:15:13 +0530 Subject: [PATCH] [mob] make function private --- mobile/lib/ui/components/toggle_switch_widget.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mobile/lib/ui/components/toggle_switch_widget.dart b/mobile/lib/ui/components/toggle_switch_widget.dart index c00e635513..de6507c1f5 100644 --- a/mobile/lib/ui/components/toggle_switch_widget.dart +++ b/mobile/lib/ui/components/toggle_switch_widget.dart @@ -63,11 +63,11 @@ class _ToggleSwitchWidgetState extends State { ), 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 { } } - Future onChanged(bool negationOfToggleValue) async { + Future _onChanged(bool negationOfToggleValue) async { setState(() { toggleValue = negationOfToggleValue; //start showing inProgress statu icons if toggle takes more than debounce time