ClipboardWeb class final
Represents the web version of the clipboard.
This class provides clipboard functionality for web applications.
In order to avoid the need for the ignore
directive, it is recommended to extract the "web" version
of your plugin as a separate package, instead of inlining it in the same package as the core of your plugin.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
detectClipboardApi(
) → bool - Determines if the clipboard API is available in the current browser.
-
getClipboardData(
) → Future< Map< String, String> ?> - Retrieves the plain text and HTML text content from the clipboard asynchronously.
-
getClipboardDataMimeTypes(
) → Future< List< String> > - Retrieves the mime types of the content currently available in the clipboard asynchronously.
-
setClipboardData(
Map< String, String> params) → Future<bool> -
Writes the specified
params
to the clipboard asynchronously.