checkMicrophonePermission method
Checks if microphone recording permission is granted.
Implementation
@override
Future<bool> checkMicrophonePermission() async {
try {
final hasPermission = await methodChannel
.invokeMethod<bool>('checkMicrophonePermission')
.timeout(methodTimeout);
return hasPermission ?? false;
} catch (e, stack) {
debugPrint('AudioPicker: checkMicrophonePermission error: $e\n$stack');
return false;
}
}