NodeController class

Constructors

NodeController({NodeController? parent, TreeNodeItem? nodeItem, ExpandCallback? expandCallback})

Properties

childControllers → List<NodeController>
no setter
descendantsIndexes → List<int>
no setter
expandCallback → ExpandCallback?
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
no setter
lastVisibleDescendatIndex → int
no setter
level → int
NodeController's level
no setter
nodeItem → TreeNodeItem?
final
parent → NodeController?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
treeNode → TreeNode
final

Methods

addChildController(List<NodeController>? controllers) → void
collapseAndCollapseChildren(bool collapseChildren) → void
collapse
controllerForIndex(int index) → NodeController?
controllerOfItem(dynamic item) → NodeController?
Gets the controller associated with the data
expandAndExpandChildren(bool expandChildren) → void
Collapsing and expanding
indexOfItem(dynamic item) → int
Gets the index associated with the data
insertChildControllers(List<NodeController>? controllers, List<int> indexes) → void
insertNewChildControllers(NodeController? controller, int index) → void
lastVisibleDescendantIndexForItem(dynamic item) → int
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
numberOfVisibleDescendants() → int
Collapsing and expanding - end
removeChildControllers(List<int> indexes) → void
Remove
removeChildControllersForParent(dynamic parent, int index) → void
resetChildNodesAfterChildAtIndex(int index) → void
resetData() → void
resetNodesAfterChildAtIndex(int index) → void
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

min → int
final