StringBuffer class Null safety
A class for concatenating strings efficiently.
Allows for the incremental building of a string using
The strings are concatenated to a single string only when toString is
- Implemented types
- hashCode → int
The hash code for this object. [...]
- isEmpty → bool
Returns whether the buffer is empty. This is a constant-time operation.
- isNotEmpty → bool
Returns whether the buffer is not empty. This is a constant-time
- length → int
Returns the length of the content that has been accumulated so far.
This is a constant-time operation.
- runtimeType → Type
A representation of the runtime type of the object.
) → void
- Clears the string buffer.
Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
) → String
Returns the contents of buffer as a single string.
Object? object) → void
Adds the string representatoon of
objectto the buffer.override
Iterable objects, [String separator = ""]) → void
int charCode) → void
Adds the string representation of
charCodeto the buffer. [...]override
[Object? obj = ""]) → void
objectfollowed by a newline,