TwoDimensionalChildBuilderDelegate constructor

TwoDimensionalChildBuilderDelegate({
  1. required TwoDimensionalIndexedWidgetBuilder builder,
  2. int? maxXIndex,
  3. int? maxYIndex,
  4. bool addRepaintBoundaries = true,
  5. bool addAutomaticKeepAlives = true,
})

Creates a delegate that supplies children for a TwoDimensionalScrollView using the given builder callback.

Implementation

TwoDimensionalChildBuilderDelegate({
  required this.builder,
  int? maxXIndex,
  int? maxYIndex,
  this.addRepaintBoundaries = true,
  this.addAutomaticKeepAlives = true,
}) : assert(maxYIndex == null || maxYIndex >= -1),
     assert(maxXIndex == null || maxXIndex >= -1),
     _maxYIndex = maxYIndex,
     _maxXIndex = maxXIndex;