getClipboardHtml method

  1. @Category(['Clipboard'])
Future<String?> getClipboardHtml()

Returns a HTML from the system clipboard. The HTML can be platform-dependent.

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

Returns null if the HTML content is not available or if the user has not granted permission for pasting on iOS.

Implementation

@Category(['Clipboard'])
Future<String?> getClipboardHtml() => _platform.getClipboardHtml();