state property

Stream<int> get state

Gets the current state of the Bluetooth module

Implementation

Stream<int> get state async* {
  yield await _channel.invokeMethod('state').then((s) => s);

  yield* _stateChannel.receiveBroadcastStream().map((s) => s);
}