getBluetoothState method

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

Implementation

@override
Stream<BluetoothState> getBluetoothState() {
  return eventChannel.receiveBroadcastStream().map(
        (state) => getBluetoothStateFromString(state),
      );
}