nodeBuilder property

Widget Function(BuildContext context, TKey nodeKey, int nodeDepth) nodeBuilder
final

Builder function that creates a widget for each visible tree node.

nodeKey is the node's unique identifier and nodeDepth its nesting level, 0 for roots.

Use TreeController.getNodeData to look up the node's data payload.

Variable-height rows are supported. The cost is that a row carries no measured extent until it has been laid out once, so any offset derived for rows that have never been on screen uses an estimate and is corrected once the real heights arrive.

Implementation

final Widget Function(BuildContext context, TKey nodeKey, int nodeDepth)
nodeBuilder;