listLaunchpads method
Implementation
Future<List<LaunchpadController>> listLaunchpads() async {
final result = <LaunchpadController>[];
final devices = await this._midiCommand.devices;
if (devices == null) {
return result;
}
for (final device in devices) {
final model = parseModel(device.name);
if (model != null) {
result.add(LaunchpadController.fromDevice(
device: device, midiCommand: this._midiCommand));
}
}
return result;
}