scanResults property

  1. @override
Stream<BluetoothScanResult> get scanResults
override

实现 FlutterBluetoothPluginPlatform.scanResults

参数、默认值、平台差异和推荐值见平台接口文档。

Implementation

@override
Stream<BluetoothScanResult> get scanResults {
  return _eventStream
      .where((event) => event['type'] == 'scanResult')
      .map(BluetoothScanResult.fromMap);
}