copyImageToClipboard method
Copies an image to the system clipboard to be pasted on other apps.
Requires modifying AndroidManifest.xml
to work on Android.
See Copying images to the system clipboard.
Important for web: If Clipboard API is not supported on the web browser, should fallback to Clipboard Events such as the copy_event.
Currently, it's not supported on Windows.
Implementation
@Category(['Clipboard'])
Future<void> copyImageToClipboard(Uint8List imageBytes) =>
_platform.copyImageToClipboard(imageBytes);