From 60e8ee013053a06d1f8c74d8f654d3ecf97f0288 Mon Sep 17 00:00:00 2001 From: zjs81 Date: Sat, 14 Mar 2026 18:41:57 -0700 Subject: [PATCH] fix: simplify method call for writing data in UsbSerialService --- lib/services/usb_serial_service_native.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/services/usb_serial_service_native.dart b/lib/services/usb_serial_service_native.dart index c1d3946f..40861dbc 100644 --- a/lib/services/usb_serial_service_native.dart +++ b/lib/services/usb_serial_service_native.dart @@ -259,9 +259,7 @@ class UsbSerialService { } if (_useAndroidUsbHost) { try { - await _androidMethodChannel.invokeMethod('write', { - 'data': data, - }); + await _androidMethodChannel.invokeMethod('write', {'data': data}); } on PlatformException catch (error) { throw StateError(error.message ?? error.code); }