ClipboardService class abstract

A more rich abstraction of Flutter Clipboard to support images, rich text and more clipboard operations.

Annotations
  • @experimental

Constructors

ClipboardService()

Properties

hasClipboardContent Future<bool>
If the Clipboard is not empty or has something to paste
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyImage(Uint8List imageBytes) Future<void>
Copy an image to the system clipboard to paste it on other apps.
getGifFile() Future<Uint8List?>
Return Gif from the Clipboard.
getHtmlFile() Future<String?>
Return HTML text file from the Clipboard.
getHtmlText() Future<String?>
Return HTML from the Clipboard.
getImageFile() Future<Uint8List?>
Return image from the Clipboard.
getMarkdownFile() Future<String?>
Return the Markdown file in the Clipboard.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited