bluetoothStateChanged method

  1. @override
Stream<BluetoothState> bluetoothStateChanged()
override

Implementation

@override
Stream<BluetoothState> bluetoothStateChanged() {
  _onBluetoothState ??= _bluetoothStateChangedChannel
      .receiveBroadcastStream()
      .map((dynamic event) => BluetoothState.parse(event));
  return _onBluetoothState!;
}