BuildTree class Null safety

A tree of BuildBits.

Inheritance

Constructors

BuildTree(BuildTree? parent, TextStyleBuilder tsb)
Creates a tree.

Properties

anchors Iterable<Key>?
Anchor keys of this tree and its children.
read-only
bits Iterable<BuildBit>
The list of bits including direct children and sub-tree's.
read-only
directChildren Iterable<BuildBit>
The list of direct children.
read-only
first BuildBit?
The first bit (recursively).
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
Returns true if there are no bits (recursively).
read-only
isInline bool
Returns true if this bit should be rendered inline.
read-only, inherited
last BuildBit?
The last bit (recursively).
read-only
next BuildBit?
The next bit in the tree. [...]
read-only, inherited
parent BuildTree?
The container tree.
final, inherited
prev BuildBit?
The previous bit in the tree. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
swallowWhitespace bool?
Controls whether to swallow following whitespaces. [...]
read-only, inherited
tsb TextStyleBuilder
The associated TextStyleBuilder.
final, inherited

Methods

add<T extends BuildBit>(T bit) → T
Adds bit as the last bit.
addText(String data) TextBit
Adds a string of text.
addWhitespace(String data) BuildBit
Adds whitespace.
build() Iterable<WidgetPlaceholder>
Builds widgets from bits.
buildBit(void _) Iterable<WidgetPlaceholder>
Builds input into output. [...]
override
copyWith({BuildTree? parent, TextStyleBuilder? tsb}) BuildBit
Creates a copy with the given fields replaced with the new values.
override
detach() bool
Removes self from parent.
inherited
insertAfter(BuildBit another) bool
Inserts self after another in the tree.
inherited
insertBefore(BuildBit another) bool
Inserts self before another in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
registerAnchor(Key anchor) → void
Registers anchor Key.
sub({BuildTree? parent, TextStyleBuilder? tsb}) BuildTree
Creates a sub tree. [...]
toString() String
A string representation of this object. [...]
override

Operators

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