hasPermission method

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

Whether screen recording is granted. Never prompts.

Implementation

@override
Future<bool> hasPermission() async {
  _requireSupported();
  hasPermissionCalls += 1;
  final err = hasPermissionError;
  if (err != null) throw err;
  return permission;
}