write method
Writes to an endpoint, answering how many bytes the device took.
Implementation
Future<int> write(int handle, int endpoint, List<int> bytes,
{int timeoutMs = 1000}) async =>
DVNativeBridge.require<int>('device.usb.write', <String, Object?>{
'handle': handle,
'endpoint': endpoint,
'bytes': bytes,
'timeoutMs': timeoutMs,
});