Clipboard class

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

addListener(FutureOr<void> callback(ClipboardEvent)) → ListenerId
Registers callback for every ClipboardEvent this Clipboard emits.
clear() → bool
getChangeCount() → int
hasFilePaths() → bool
hasFormat(String format) → bool
hasHtml() → bool
hasImage() → bool
hasRtf() → bool
hasText() → bool
isChangeMonitoringSupported() → bool
isConcealed() → bool
isMonitoring() → bool
isSupported() → bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read(void callback(bool, ClipboardData)) → void
readAsync() → Future<ClipboardData>
readFilePaths(void callback(bool, List<String>)) → void
readFilePathsAsync() → Future<List<String>>
readFormatBase64(String format, void callback(bool, String?)) → void
readHtml(void callback(bool, String?)) → void
readHtmlAsync() → Future<String?>
readImage(void callback(bool, Image?)) → void
readImageAsync() → Future<Image?>
readRtf(void callback(bool, String?)) → void
readRtfAsync() → Future<String?>
readText(void callback(bool, String?)) → void
readTextAsync() → Future<String?>
removeListener(ListenerId listenerId) → bool
Unregisters a listener. Returns false if unknown.
toString() → String
A string representation of this object.
inherited
write(ClipboardData data) → bool
writeFilePaths(List<String> filePaths) → bool
writeFormatBase64(String format, String base64Data) → bool
writeHtml(String html) → bool
writeImage(Image? image) → bool
writeRtf(String rtf) → bool
writeText(String text) → bool

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

instance → const Clipboard
The shared instance backed by the native singleton.