A class for concatenating strings efficiently.
Allows for the incremental building of a string using write*() methods. The strings are concatenated to a single string only when toString is called.
- isEmpty → bool
Returns whether the buffer is empty. This is a constant-time operation.read-only
- isNotEmpty → bool
Returns whether the buffer is not empty. This is a constant-time operation.read-only
- length → int
Returns the length of the content that has been accumulated so far. This is a constant-time operation.read-only
- hashCode → int
The hash code for this object.read-only, inherited
- runtimeType → Type
A representation of the runtime type of the object.read-only, inherited
) → void
Clears the string buffer.
) → String
Returns the contents of buffer as a concatenated string.
Object obj) → void
Adds the contents of
obj, converted to a string, to the buffer.
Iterable objects, [ String separator = "" ]) → void
Iterates over the given
writes them in sequence.
int charCode) → void
Adds the string representation of
charCodeto the buffer.
[Object obj = "" ]) → void
objto a String by invoking
Object.toStringand adds the result to
this, followed by a newline.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.inherited