TextBits class

A container of bits.

Inheritance

Constructors

TextBits(TextStyleBuilder tsb, [TextBits parent])
Creates a container.

Properties

bits Iterable<TextBit>
The list of bits including direct children and their children.
read-only
first TextBit
The first bit (recursively).
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
hasTrailingWhitespace bool
Returns true if the text (up to this container) has trailing whitespace.
read-only
isEmpty bool
Returns true if there are no bits (recursively).
read-only
last TextBit
The last bit (recursively).
read-only
next TextBit
The next bit in the text tree. [...]
read-only, inherited
parent TextBits
The container TextBits.
final, inherited
prev TextBit
The previous bit in the text tree. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
tsb TextStyleBuilder
The associated TextStyleBuilder.
final

Methods

add(TextBit bit) → void
Adds bit to the tail of this container.
addNewLine() TextBit
Adds a new line to the tail of this container.
addText(String data) TextData
Adds a string to the tail of this container.
addWhitespace() TextBit
Adds a new whitespace to the tail of this container.
compile(void input) → void
Compiles input into output.
inherited
detach() bool
Removes self from the parent.
inherited
insertAfter(TextBit another) bool
Inserts self after another in the text tree.
inherited
insertBefore(TextBit another) bool
Inserts self before another in the text tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
replaceWith(TextBit another) bool
Replaces self with another.
inherited
sub([TextStyleBuilder subTsb]) TextBits
Creates a sub-container.
toString() String
Returns a string representation of this object.
override
trimRight() int
Trims all trailing whitespaces. [...]

Operators

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