Buffer class

Constructors

Buffer({RenderSink? sink})

Properties

hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
Returns true if the buffer is empty.
no setter
isNotEmpty → bool
Returns true if the buffer is not empty.
no setter
length → int
Returns the length of the buffer's contents.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clear() → void
Clears the contents of the buffer.
merge(Buffer other) → void
Merges another buffer into this buffer.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
spawn() → Buffer
Returns a new buffer spawned from the same sink type.
toString() → String
Returns the contents of the buffer as a string.
override
value() → Object?
Returns the structured value of the underlying sink.
write(Object? obj) → void
Writes the given object to the buffer.
writeln([Object? obj]) → void
Writes the given object to the buffer, followed by a newline.

Operators

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