summaryrefslogtreecommitdiffstats
path: root/lib/data/data_providers/signal_notifier.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/data/data_providers/signal_notifier.dart')
-rw-r--r--lib/data/data_providers/signal_notifier.dart14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/data/data_providers/signal_notifier.dart b/lib/data/data_providers/signal_notifier.dart
new file mode 100644
index 0000000..3059174
--- /dev/null
+++ b/lib/data/data_providers/signal_notifier.dart
@@ -0,0 +1,14 @@
+import 'package:flutter_ics_homescreen/export.dart';
+
+class SignalNotifier extends StateNotifier<Signals> {
+ SignalNotifier(super.state);
+
+ void startListen() {}
+ void toggleBluetooth() {
+ state = state.copyWith(isBluetoothConnected: !state.isBluetoothConnected);
+ }
+
+ void toggleWifi() {
+ state = state.copyWith(isWifiConnected: !state.isWifiConnected);
+ }
+}