copyImageToClipboard static method

Future<void> copyImageToClipboard(
  1. Uint8List imageBytes
)

Copy the imageBytes to Clipboard to be pasted on other apps.

Require modifying AndroidManifest.xml to work on Android. Otherwise, you will get a warning available only on debug-builds. See: https://github.com/FlutterQuill/quill-native-bridge/tree/main/quill_native_bridge#-platform-configuration

Important for web: If Clipboard API is not supported on the web browser, should fallback to Clipboard Events such as the copy_event.

Currently only supports Android, iOS, macOS, Linux, and the Web.

Implementation

static Future<void> copyImageToClipboard(Uint8List imageBytes) =>
    _platform.copyImageToClipboard(imageBytes);