gattServerRequests property

  1. @override
Stream<BluetoothGattServerRequest> get gattServerRequests
override

实现 FlutterBluetoothPluginPlatform.gattServerRequests

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

Implementation

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