advertisingState property

  1. @override
Stream<BluetoothAdvertisingStateEvent> get advertisingState
override

实现 FlutterBluetoothPluginPlatform.advertisingState

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

Implementation

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