copyImageToClipboard method

  1. @Category(['Clipboard'])
Future<void> copyImageToClipboard(
  1. Uint8List imageBytes
)

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);