write method

Future<bool?> write(
  1. Uint8List bytes
)

Sends raw bytes to USB device. Requires open connection to USB device.

Implementation

Future<bool?> write(Uint8List bytes) async {
  Map<String, dynamic> args = {"bytes": bytes};
  try {
    return await _methodChannel!.invokeMethod("write", args);
  } on PlatformException catch (e) {
    throw _getTypedException(e);
  }
}