MidiCommand class

Constructors

MidiCommand()
factory

Properties

bluetoothState BluetoothState
Returns the state of the bluetooth central
no setter
devices Future<List<MidiDevice>?>
Gets a list of available MIDI devices and returns it
no setter
hashCode int
The hash code for this object.
no setterinherited
onBluetoothStateChanged Stream<BluetoothState>
Stream firing events whenever the bluetooth state changes
no setter
onMidiDataReceived Stream<MidiPacket>?
Stream firing events whenever a midi package is received
no setter
onMidiDataSent Stream<Uint8List>
Stream firing events whenever a midi package is sent
no setter
onMidiSetupChanged Stream<String>?
Stream firing events whenever a change in the MIDI setup occurs
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addVirtualDevice({String? name}) → void
Creates a virtual MIDI source
connectToDevice(MidiDevice device) Future<void>
Connects to the device
disconnectDevice(MidiDevice device) → void
Disconnects from the device
dispose() → dynamic
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeVirtualDevice({String? name}) → void
Removes a previously created virtual MIDI source. Currently only supported on iOS.
sendData(Uint8List data, {String? deviceId, int? timestamp}) → void
Sends data to the currently connected device
startBluetoothCentral() Future<void>
Starts the bluetooth central
startScanningForBluetoothDevices() Future<void>
Starts scanning for BLE MIDI devices
stopScanningForBluetoothDevices() → void
Stop scanning for BLE MIDI devices
teardown() → void
Disconnects from all devices
toString() String
A string representation of this object.
inherited
waitUntilBluetoothIsInitialized() Future<void>
Wait for the blueetooth state to be initialized

Operators

operator ==(Object other) bool
The equality operator.
inherited