Pasteboard class
Sub-accessor for the protected clipboard.
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
-
clear(
{bool onlyIfOwned = false}) → Future< SecurityResult< bool> > -
Clears the clipboard. With
onlyIfOwnedit is only cleared while it still holds the value written by copy. -
copy(
String value, {Duration expiresAfter = PasteboardUseCase.defaultExpiry}) → Future< SecurityResult< void> > -
Copies
valueas local-only / sensitive and removes it again afterexpiresAfter(default 60 seconds, at most one hour). -
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