setAllowedCapturePolicy method Null safety

Future<void> setAllowedCapturePolicy(
  1. AndroidAudioCapturePolicy capturePolicy
)

(UNTESTED) Requires API level 29

Implementation

Future<void> setAllowedCapturePolicy(
    AndroidAudioCapturePolicy capturePolicy) async {
  await _channel
      .invokeMethod<bool>('setAllowedCapturePolicy', [capturePolicy.index]);
}