InProcessClipboard class
Platform-neutral clipboard: writes populate the in-process
register only, never touching stdout or spawning subprocesses. The
test default (FleuryTester installs one and exposes it as
tester.clipboard) and the io-free fallback for embedders that have
no platform clipboard.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- lastWritten → String?
-
The text passed to the most recent write, or null if nothing has
been written — the assertion hook for tests.
no setter
- 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
-
readInProcess(
) → String? -
Reads the in-process register. Cross-terminal clipboard reads
via OSC 52 are widely disabled for security, so this is the
only reliable read path. Returns null when nothing has been
written this session.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
write(
String text) → Future< ClipboardWriteResult> -
Writes
textto the system clipboard and the in-process register. Returns the transport that actually delivered it.inherited -
writeWithReport(
String text, {ClipboardWritePolicy policy = ClipboardWritePolicy.standard}) → Future< ClipboardWriteReport> -
Writes
textand returns a structured diagnostic report.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited