onStateChanged method

Stream<BluetoothState> onStateChanged()

Allows monitoring the Bluetooth adapter state changes.

Implementation

Stream<BluetoothState> onStateChanged() => _stateChannel
    .receiveBroadcastStream()
    .map((data) => BluetoothState.fromUnderlyingValue(data));