getDevices method Null safety

Future<List<AndroidAudioDeviceInfo>> getDevices(
  1. AndroidGetAudioDevicesFlags flags
)

Requires API level 23

Implementation

Future<List<AndroidAudioDeviceInfo>> getDevices(
    AndroidGetAudioDevicesFlags flags) async {
  return _decodeAudioDevices(
      (await _channel.invokeMethod<dynamic>('getDevices', [flags.value]))!);
}