hasPermission method
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;
}