getAllowedCapturePolicy method Null safety

Future<AndroidAudioCapturePolicy> getAllowedCapturePolicy()

(UNTESTED) Requires API level 29

Implementation

Future<AndroidAudioCapturePolicy> getAllowedCapturePolicy() async {
  return decodeMapEnum(AndroidAudioCapturePolicy.values,
      (await _channel.invokeMethod<int>('getAllowedCapturePolicy'))!,
      defaultIndex: 1);
}