aboutsummaryrefslogtreecommitdiffstats
path: root/lib/data/data_providers/signal_notifier.dart
blob: 3059174ef937461bdad3eb65515892bf354d0ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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);
  }
}