onStateChanged method
Allows monitoring the Bluetooth adapter state changes.
Implementation
Stream<BluetoothState> onStateChanged() => _stateChannel
.receiveBroadcastStream()
.map((data) => BluetoothState.fromUnderlyingValue(data));
Allows monitoring the Bluetooth adapter state changes.
Stream<BluetoothState> onStateChanged() => _stateChannel
.receiveBroadcastStream()
.map((data) => BluetoothState.fromUnderlyingValue(data));