Pasteboard class

Constructors

Pasteboard()

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 Properties

html Future<String?>
only available on Windows Get "HTML format" from system pasteboard. HTML format: https://docs.microsoft.com/en-us/previous-versions/windows/internet-explorer/ie-developer/platform-apis/aa767917(v=vs.85)
no setter
image Future<Uint8List?>
Returns the image data of the pasteboard.
no setter
text Future<String?>
Available on all platforms. Get text from system pasteboard.
no setter

Static Methods

files() Future<List<String>>
Only available on desktop platforms.
writeFiles(List<String> files) Future<bool>
Only available on desktop platforms.
writeImage(Uint8List? image) Future<void>
only available on iOS and the web.
writeText(String value) → void
Available on all platforms. Set text to system pasteboard.