open method Null safety

  1. @override
Future<void> open()
override

Attempt to open a connection to this MidiPort

Implementation

@override
Future<void> open() async {
  _connectionController.add(MidiPortConnectionState.pending);
  await MidiPlatform.instance.openSource(id);
  _connectionController.add(MidiPortConnectionState.open);
}