getOutputDevices method
Implementation
@override
Future<List<AudioOutputDevice>> getOutputDevices() async {
final devices =
await methodChannel.invokeListMethod<dynamic>('getOutputDevices') ??
const <dynamic>[];
return devices
.map((dynamic device) =>
AudioOutputDevice.fromMap(device as Map<dynamic, dynamic>))
.toList(growable: false);
}