copyHtmlToClipboard static method

Future<void> copyHtmlToClipboard(
  1. String html
)

Copy the html to the clipboard to be pasted on other apps.

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, Windows and the Web.

Implementation

static Future<void> copyHtmlToClipboard(String html) =>
    _platform.copyHtmlToClipboard(html);