ClipboardWriter class abstract
Writes the provided data to the clipboard. The writer can be obtained using SystemClipboard.instance, if available, or from a ClipboardWriteEvent.
Example for using clipboard writer:
final item = ClipboardWriterItem();
item.addData(formatHtmlText.encode('<b><i>Html</i></b> Value'));
item.addData(formatPlainText.encodeLazy(() =>
'Plaintext value resolved lazily'));
await SystemClipboard.instance?.write([item]);
- Implementers
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
-
write(
Iterable< DataWriterItem> items) → Future<void> - Writes the provided items to the clipboard.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance → ClipboardWriter
-
no setter