bluetoothScanStream property

  1. @override
Stream<BluetoothDeviceModel> get bluetoothScanStream
override

Stream các device được discover trong quá trình scan. Gọi startBluetoothScan trước khi listen trên iOS.

Implementation

@override
Stream<BluetoothDeviceModel> get bluetoothScanStream {
  return _scanChannel
      .receiveBroadcastStream()
      .map((e) => BluetoothDeviceModel.fromMap(Map<String, dynamic>.from(e)));
}