read method

Future<List<int>> read(
  1. int handle,
  2. int endpoint, {
  3. int max = 512,
  4. int timeoutMs = 1000,
})

Reads from an endpoint. The direction bit is set for you.

Implementation

Future<List<int>> read(int handle, int endpoint,
        {int max = 512, int timeoutMs = 1000}) async =>
    DVNativeBridge.require<List<int>>('device.usb.read', <String, Object?>{
      'handle': handle,
      'endpoint': endpoint,
      'max': max,
      'timeoutMs': timeoutMs,
    });