TreeSliverNode<T> class
A data structure for configuring children of a TreeSliver.
A TreeSliverNode.content can be of any type T, but must correspond with
the same type of the TreeSliver.
The values returned by depth, parent and isExpanded getters are managed by the TreeSliver's state.
Constructors
-
TreeSliverNode.new(T content, {List<
TreeSliverNode< ? children, bool expanded = false})T> > - Creates a TreeSliverNode instance for use in a TreeSliver.
Properties
-
children
→ List<
TreeSliverNode< T> > -
Other TreeSliverNodes that this node will be parent to.
no setter
- content → T
-
The subject matter of the node.
no setter
- depth → int?
-
The number of parent nodes between this node and the root of the tree.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- isExpanded → bool
-
Whether or not this node is expanded in the tree.
no setter
-
parent
→ TreeSliverNode<
T> ? -
The parent TreeSliverNode of this node.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited