getMaximumWriteLength method
实现 FlutterBluetoothPluginPlatform.getMaximumWriteLength。
参数、默认值、平台差异和推荐值见平台接口文档。
Implementation
@override
Future<int> getMaximumWriteLength(
String deviceId, {
bool withoutResponse = true,
}) async {
return await methodChannel.invokeMethod<int>(
'getMaximumWriteLength',
<String, dynamic>{
'deviceId': deviceId,
'withoutResponse': withoutResponse,
},
) ??
0;
}