close method Null safety

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

Close this MidiPort

Implementation

@override
Future<void> close() async {
  await MidiPlatform.instance.closeSource(id);
  _connectionController.add(MidiPortConnectionState.closed);
}