Node class final
Node represents a node in the document tree.
It contains three parts:
- type: The type of the node to determine which block component to render it.
data
: The data of the node to determine how to render it.- children: The children of the node.
Json format:
{
'type': String,
'data': Map<String, Object>
'children': List<Node>,
}
- Inheritance
-
- Object
- ChangeNotifier
- Node
- Mixed in types
- Implementers
- Available Extensions
Constructors
Properties
- attributes → Attributes
-
no setter
-
children
→ List<
Node> -
no setter
- delta → Delta?
-
no setter
- externalValues ↔ NodeExternalValues?
-
getter/setter pair
- extraInfos ↔ Map?
-
this value is used to store temporary data,
and will be cleared after the node is rendered
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- id → String
-
The id of the node.
final
-
key
→ GlobalKey<
State< StatefulWidget> > -
final
- layerLink → LayerLink
-
final
-
list
→ LinkedList<
Node> ? -
The linked list containing this element.
no setterinherited
- next → Node?
-
The successor of this element in its linked list.
no setterinherited
- parent ↔ Node?
-
The parent of the node.
getter/setter pair
- path → Path
-
The path of the node.
no setter
- previous → Node?
-
The predecessor of this element in its linked list.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subtype → String
-
no setter
- type → String
-
The type of the node.
final
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
checkDocumentIntegrity(
) → void - check the integrity of the document (for DEBUG only)
-
childAtIndexOrNull(
int index) → Node? - Grabs the Node from this Nodes children at a given index, if the index exists.
-
childAtPath(
Path path) → Node? -
copyWith(
{String? type, Iterable< Node> ? children, Attributes? attributes}) → Node -
dispose(
) → void -
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
-
insert(
Node entry, {int? index}) → void -
Inserts a Node at a given
index
-
insertAfter(
Node entry) → void -
Insert an element after this element in this element's linked list.
override
-
insertBefore(
Node entry) → void -
Insert an element before this element in this element's linked list.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notify(
) → void -
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toJson(
) → Map< String, Object> -
toString(
) → String -
A string representation of this object.
override
-
unlink(
) → bool -
Unlink the element from its linked list.
override
-
updateAttributes(
Attributes attributes) → void - Update the attributes of the node.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited