hasScreenRecordingPermission method
Implementation
Future<bool> hasScreenRecordingPermission() async {
if (Platform.isMacOS) {
final hasScreenRecordingPermission = await _channel.invokeMethod<bool>(
'hasScreenRecordingPermission',
<String, Object>{},
);
return hasScreenRecordingPermission ?? false;
} else {
throw UnimplementedError(
'hasScreenRecordingPermission() is only supported on MacOS');
}
}