Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob] make function private

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