Buffer class

Constructors

Buffer.new()

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns the contents of the buffer as a string.
override
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