hasPermission method
Check if microphone permission is granted
Implementation
Future<bool> hasPermission() async {
if (!recordAudio) return true;
try {
final result = await _channel.invokeMethod<bool>('checkPermission');
return result ?? false;
} catch (e) {
return false;
}
}