TwoDimensionalChildBuilderDelegate constructor
- required TwoDimensionalIndexedWidgetBuilder builder,
- int? maxXIndex,
- int? maxYIndex,
- bool addRepaintBoundaries = true,
- 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;