hasPermission method

  1. @override
Future<bool> hasPermission()
override

Whether microphone + speech-recognition permission has already been granted.

Implementation

@override
Future<bool> hasPermission() async {
  final granted = await methodChannel.invokeMethod<bool>('hasPermission');
  return granted ?? false;
}