BuildTree class abstract
A tree of BuildBits.
- Inheritance
- Mixed in types
- Available Extensions
Constructors
- BuildTree({required Element element, required InheritanceResolvers inheritanceResolvers})
- Creates a tree.
Properties
-
bits
→ Iterable<
BuildBit> -
The list of bits including direct children and sub-tree's.
no setter
-
children
→ Iterable<
BuildBit> -
The list of direct children.
no setter
- element → Element
-
The associated DOM element.
final
- first → BuildBit?
-
The first bit (recursively).
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasParent → bool
-
Returns
true
if this build bit has a parent.no setterinherited - inheritanceResolvers → InheritanceResolvers
-
The InheritedProperties resolvers.
final
- isEmpty → bool
-
Returns
true
if there are no bits (recursively).no setter - isInline → bool?
-
Controls whether to render inline.
no setterinherited
- last → BuildBit?
-
The last bit (recursively).
no setter
- next → BuildBit?
-
The next bit in the tree.
no setterinherited
- nonInheritedValues ↔ List?
-
getter/setter pairinherited
- parent → BuildTree
-
The container tree.
no setterinherited
- prev → BuildBit?
-
The previous bit in the tree.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
styles
→ LockableList<
Declaration> -
The styling declarations.
no setter
- swallowWhitespace → bool?
-
Controls whether to swallow following whitespaces.
no setterinherited
Methods
-
addText(
String data) → TextBit - Adds a string of text.
-
addWhitespace(
String data) → BuildBit - Adds whitespace.
-
append<
T extends BuildBit> (T bit) → T -
Appends
bit
. -
build(
) → WidgetPlaceholder? - Builds widget from bits.
-
copyWith(
{BuildTree? parent}) → BuildBit -
Creates a copy with the given fields replaced with the new values.
inherited
-
flatten(
Flattened f) → void -
Flattens this bit.
inherited
-
getNonInherited<
T> () → T? -
Gets non-inherited property of type
T
.inherited -
getStyle(
String property) → Declaration? -
Gets a styling declaration by
property
. -
inherit<
T> (InheritanceResolverCallback< T> callback, [T? input]) → void - Enqueues an inherited property resolver callback.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
prepend<
T extends BuildBit> (T bit) → T -
Prepends
bit
. -
register(
BuildOp op) → void - Registers a build op.
-
setNonInherited<
T> (T value) → T -
Sets non-inherited property of type
T
.inherited -
setNonInheriteds(
NonInheritedPropertiesOwner other) → void -
Sets all non-inherited from another NonInheritedPropertiesOwner.
inherited
-
sub(
) → BuildTree - Creates a sub tree without appending.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator [](
String key) → Declaration? -
Gets a styling declaration by
key
. -
operator []=(
String key, String value) → void - Adds an inline style.