sendData method

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

Sends data to the currently connected device

Data is an UInt8List of individual MIDI command bytes

Implementation

void sendData(Uint8List data, {String? deviceId, int? timestamp}) {
  _platform.sendData(data, deviceId: deviceId, timestamp: timestamp);
  _txStreamCtrl.add(data);
}