StringAnsiSink class final

Captures every byte written into an in-memory buffer. Used in tests to assert on the exact ANSI emitted by AnsiRenderer.

Implemented types

Constructors

StringAnsiSink()

Properties

hashCode → int
The hash code for this object.
no setterinherited
output → String
The full output written so far, including escape sequences.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears the captured output without allocating a new sink.
flush() → Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
write(String data) → void
override

Operators

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