TreeRowBuilderDelegate class
A delegate that supplies nodes for a TreeViewport on demand using a builder callback.
This is not typically used directly, instead being created and managed by the TreeView so that the builder can be called for only those TreeViewNodes that are currently active in the TreeView.
The rowCount is determined by the number of active nodes in the TreeView.
- Inheritance
-
- Object
- ChangeNotifier
- TwoDimensionalChildDelegate
- TwoDimensionalChildBuilderDelegate
- TreeRowBuilderDelegate
- Mixed in types
Constructors
- TreeRowBuilderDelegate({required int rowCount, bool addAutomaticKeepAlives = true, required TwoDimensionalIndexedWidgetBuilder nodeBuilder, required TreeVicinityToRowBuilder rowBuilder})
- Creates a lazy building delegate to use with a TreeView.
Properties
- addAutomaticKeepAlives → bool
-
Whether to wrap each child in an AutomaticKeepAlive.
finalinherited
- addRepaintBoundaries → bool
-
Whether to wrap each child in a RepaintBoundary.
finalinherited
- builder → TwoDimensionalIndexedWidgetBuilder
-
Called to build children on demand.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- maxXIndex ↔ int?
-
The maximum ChildVicinity.xIndex for children in the x axis.
getter/setter pairinherited
- maxYIndex ↔ int?
-
The maximum ChildVicinity.yIndex for children in the y axis.
getter/setter pairinherited
- rowCount ↔ int
-
The number of rows that the tree has active nodes for.
getter/setter pairoverride-getter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
build(
BuildContext context, covariant ChildVicinity vicinity) → Widget? -
Returns the child with the given ChildVicinity, which is described in
terms of x and y indices.
inherited
-
buildRow(
TreeVicinity vicinity) → TreeRow -
Builds the TreeRow that describe the row for the provided
TreeVicinity.
override
-
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
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
-
shouldRebuild(
covariant TwoDimensionalChildDelegate oldDelegate) → bool -
Called whenever a new instance of the child delegate class is
provided.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited