IndentingStringBuffer class

A helper class for building strings with indentation support.

Constructors

IndentingStringBuffer({int spacesPerIndent = 2})

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

indent() → void
Increase indentation level
newLine() → void
Write a newline
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
outdent() → void
Decrease indentation level
toString() String
A string representation of this object.
override
writeBlock(String block) → void
Write a block of multiple lines with automatic indentation
writeLine(String line) → void
Write a line with automatic indentation
writeRaw(String content) → void
Write raw content without indentation

Operators

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