UClipboard class abstract

Copy and paste text on all 6 platforms (web: needs a user gesture and, for reading, browser permission). UClipboard.set(code, snackBar: true)

Constructors

UClipboard()

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

getText() → Future<String?>
Reads text from the clipboard, or null. final String? pasted = await UClipboard.getText();
set(String text, {bool snackBar = false}) → Future<void>
Copies text; snackBar shows "Copied to clipboard". await UClipboard.set(iban, snackBar: true)