checkScreenRecordingPermission method
Checks if the application has permission to record the screen.
On macOS 10.15+, this requires user authorization in System Preferences > Security & Privacy > Privacy > Screen Recording.
Implementation
Future<bool> checkScreenRecordingPermission() async {
return await _channel.invokeMethod<bool>('checkScreenRecordingPermission') ?? false;
}