TreeNode class
Constructors
-
TreeNode({List<
TreeNode> children = const [], SessionView? session}) - Returns a new TreeNode instance.
Properties
-
children
↔ List<
TreeNode> -
Children is this node's direct children, each a whole node, so the array nests to the depth of the flow. A leaf carries null rather than an empty array. The subtree is materialised in full, up to 10000 nodes, out of one indexed read of the root; nothing is walked node by node.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- session ↔ SessionView?
-
Session is this node's own session, carrying its event count and its direct fan-out. It is the same shape the list and detail reads answer with, minus the last-event preview, which the tree does not fetch.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
fromJson(
dynamic value) → TreeNode? -
Returns a new TreeNode instance and imports its values from
valueif it's a Map, null otherwise. -
listFromJson(
dynamic json, {bool growable = false}) → List< TreeNode> -
mapFromJson(
dynamic json) → Map< String, TreeNode> -
mapListFromJson(
dynamic json, {bool growable = false}) → Map< String, List< TreeNode> >
Constants
-
requiredKeys
→ const Set<
String> - The list of required keys that must be present in a JSON.