bluetoothConnectionStateChanged method

  1. @override
Stream<BluetoothConnectionState> bluetoothConnectionStateChanged(
  1. String deviceId
)
override

Implementation

@override
Stream<BluetoothConnectionState> bluetoothConnectionStateChanged(
  String deviceId,
) {
  if (!_bluetoothConnectionControllers.containsKey(deviceId)) {
    _bluetoothConnectionControllers[deviceId] =
        StreamController<BluetoothConnectionState>.broadcast();
  }
  return _bluetoothConnectionControllers[deviceId]!.stream;
}