Browse Source

[mob] make function private

ashilkn 1 year ago
parent
commit
75dd7c3e48
1 changed files with 3 additions and 3 deletions
  1. 3 3
      mobile/lib/ui/components/toggle_switch_widget.dart

+ 3 - 3
mobile/lib/ui/components/toggle_switch_widget.dart

@@ -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