TreeRowBuilderDelegate constructor
TreeRowBuilderDelegate({
- required int rowCount,
- bool addAutomaticKeepAlives = true,
- required TwoDimensionalIndexedWidgetBuilder nodeBuilder,
- required TreeVicinityToRowBuilder rowBuilder,
Creates a lazy building delegate to use with a TreeView.
Implementation
TreeRowBuilderDelegate({
required int rowCount,
super.addAutomaticKeepAlives,
required TwoDimensionalIndexedWidgetBuilder nodeBuilder,
required TreeVicinityToRowBuilder rowBuilder,
}) : assert(rowCount >= 0),
_rowBuilder = rowBuilder,
super(
builder: nodeBuilder,
// No maxXIndex, since we do not know the max depth.
maxYIndex: rowCount - 1,
// repaintBoundaries handled by TreeView
addRepaintBoundaries: false,
);