readPhy method

  1. @override
Future<BluetoothPhyEvent> readPhy(
  1. String deviceId
)
override

实现 FlutterBluetoothPluginPlatform.readPhy

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

Implementation

@override
Future<BluetoothPhyEvent> readPhy(String deviceId) async {
  final response = await methodChannel.invokeMapMethod<String, dynamic>(
    'readPhy',
    <String, dynamic>{'deviceId': deviceId},
  );
  return BluetoothPhyEvent.fromMap(response ?? <String, dynamic>{});
}