hasImageInClipboard method
Check if clipboard contains an image without retrieving it.
Implementation
Future<bool> hasImageInClipboard() async {
if (!Platform.isMacOS) return false;
try {
final commands = _getClipboardCommands();
final result = await Process.run('bash', ['-c', commands.checkImage]);
return result.exitCode == 0;
} catch (_) {
return false;
}
}