FlutterMidiCommandLinux class

Inheritance
  • Object
  • PlatformInterface
  • MidiCommandPlatform
  • FlutterMidiCommandLinux

Constructors

FlutterMidiCommandLinux()
A constructor that allows tests to override the window object used by the plugin.

Properties

devices Future<List<MidiDevice>>
Returns a list of found MIDI devices.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
isNetworkSessionEnabled Future<bool?>
Returns the current state of the network session (iOS only)
no setterinherited
onBluetoothStateChanged Stream<String>?
Stream firing events whenever the bluetooth central state changes
no setterinherited
onMidiDataReceived Stream<MidiPacket>?
Stream firing events whenever a midi package is received.
no setteroverride
onMidiSetupChanged Stream<String>?
Stream firing events whenever a change in the MIDI setup occurs.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addVirtualDevice({String? name}) → void
Creates a virtual MIDI source
override
bluetoothState() Future<String>
Returns the current state of the bluetooth sub system
inherited
connectToDevice(MidiDevice device, {List<MidiPort>? ports}) Future<void>
Connects to the device.
override
disconnectDevice(MidiDevice device, {bool remove = true}) → void
Disconnects from the device.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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.wmidi hardware driver name
override
setNetworkSessionEnabled(bool enabled) → void
Sets the enabled state of the network session (iOS only)
inherited
startBluetoothCentral() Future<void>
Prepares Bluetooth system
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

Static Methods

registerWith() → void
The linux implementation of MidiCommandPlatform