hasPermission method

Future<bool> hasPermission()

Implementation

Future<bool> hasPermission() async {
  final recorder = _recorder ?? AudioRecorder();
  try {
    return await recorder.hasPermission();
  } catch (e) {
    log('AudioProcessor Web permission check error: $e');
    return false;
  }
}