SpaceBuffer extension type
- on
- Implemented types
- Available extensions
Constructors
- SpaceBuffer([String s = ""])
- SpaceBuffer.buf(StringBuffer buffer)
Properties
- buffer → StringBuffer
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Returns whether the buffer is empty. This is a constant-time operation.
no setterinherited
- isNotEmpty → bool
-
Returns whether the buffer is not empty. This is a constant-time
operation.
no setterinherited
- length → int
-
Returns the length of the content that has been accumulated so far.
This is a constant-time operation.
no setterinherited
- newLine → SpaceBuffer
-
no setter
- newLine → StringBuffer
-
Available on StringBuffer, provided by the Asss extension
no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- space → SpaceBuffer
-
no setter
Methods
-
add(
String s, {String pre = " "}) → SpaceBuffer -
addAll(
List< String> ls, {String pre = " ", String sep = " "}) → SpaceBuffer -
addLine(
String s, {String pre = " "}) → SpaceBuffer -
braced(
) → SpaceBuffer -
clear(
) → void -
Clears the string buffer.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the contents of buffer as a single string.
inherited
-
write(
Object? object) → void -
Writes the string representation of
object.inherited -
writeAll(
Iterable objects, [String separator = ""]) → void -
Writes the elements of
objectsseparated byseparator.inherited -
writeCharCode(
int charCode) → void -
Writes a string containing the character with code point
charCode.inherited -
writeln(
[Object? obj = ""]) → void -
Writes the string representation of
objectfollowed by a newline.inherited
Operators
-
operator <<(
String s) → SpaceBuffer -
operator <<(
Object? value) → StringBuffer -
Available on StringBuffer, provided by the Asss extension
-
operator <=(
String s) → SpaceBuffer -
operator ==(
Object other) → bool -
The equality operator.
inherited