sendData method

  1. @override
void sendData(
  1. Uint8List data, {
  2. int? timestamp,
  3. String? deviceId,
})
override

Sends data to the currently connected device.

Data is an UInt8List of individual MIDI command bytes.

Implementation

@override
void sendData(Uint8List data, {int? timestamp, String? deviceId}) {
  // print("send $data through method channel");
  _methodChannel.invokeMethod('sendData', {"data": data, "timestamp": timestamp, "deviceId": deviceId});
}