MethodChannelMidiCommand class Null safety

An implementation of MidiCommandPlatform that uses method channels.

Inheritance

Constructors

MethodChannelMidiCommand()

Properties

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

Methods

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

Operators

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