getClipboardImage method
Returns the copied image from the system clipboard.
Implementation
@override
Future<Uint8List?> getClipboardImage() async {
try {
return await _hostApi.getClipboardImage();
} on PlatformException catch (e) {
if (kDebugMode &&
(e.code == 'FILE_READ_PERMISSION_DENIED' ||
e.code == 'FILE_NOT_FOUND')) {
_printAndroidClipboardImageAccessKnownIssue(e);
return null;
}
rethrow;
}
}