classicConnectionState property

  1. @override
Stream<BluetoothClassicConnectionEvent> get classicConnectionState
override

实现 FlutterBluetoothPluginPlatform.classicConnectionState

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

Implementation

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