MidiCommandPlatform class Null safety

Inheritance
Implementers

Constructors

MidiCommandPlatform()
Constructs a MidiCommandPlatform.

Properties

devices Future<List<MidiDevice>?>
Returns a list of found MIDI devices.
read-only
hashCode int
The hash code for this object.
read-onlyinherited
onBluetoothStateChanged Stream<String>?
Stream firing events whenever the bluetooth central state changes
read-only
onMidiDataReceived Stream<MidiPacket>?
read-only
onMidiSetupChanged Stream<String>?
Stream firing events whenever a change in the MIDI setup occurs.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

addVirtualDevice({String? name}) → void
Creates a virtual MIDI source.
bluetoothState() Future<String>
Returns the current state of the bluetooth sub system
connectToDevice(MidiDevice device, {List<MidiPort>? ports}) Future<void>
Connects to the device.
disconnectDevice(MidiDevice device) → void
Disconnects from the device.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeVirtualDevice({String? name}) → void
Removes a previously created virtual MIDI source.
sendData(Uint8List data, {int? timestamp, String? deviceId}) → void
Sends data to the currently connected device.
startBluetoothCentral() Future<void>
Starts bluetooth subsystem. Shows an alert requesting access rights for bluetooth.
startScanningForBluetoothDevices() Future<void>
Starts scanning for BLE MIDI devices.
stopScanningForBluetoothDevices() → void
Stops scanning for BLE MIDI devices.
teardown() → void
Disconnects from all devices.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance MidiCommandPlatform
The default instance of MidiCommandPlatform to use.
read / write