TreeRowBuilderDelegate constructor

TreeRowBuilderDelegate({
  1. required int rowCount,
  2. bool addAutomaticKeepAlives = true,
  3. required TwoDimensionalIndexedWidgetBuilder nodeBuilder,
  4. 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,
      );