onBluetoothStateChanged property

  1. @override
Stream<String>? onBluetoothStateChanged
override

Stream firing events whenever a change in bluetooth central state happens

Implementation

@override
Stream<String>? get onBluetoothStateChanged {
  _bluetoothStateStream ??=
      _bluetoothStateChannel.receiveBroadcastStream().cast<String>();
  return _bluetoothStateStream;
}