SGridView.builder constructor
const
SGridView.builder({
- Key? key,
- required NullableIndexedWidgetBuilder? builder,
- int? crossAxisCount,
- SliverGridDelegate? gridDelegate,
- int? childCount,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- SemanticIndexCallback semanticIndexCallback = _kDefaultSemanticIndexCallback,
- int semanticIndexOffset = 0,
- ChildIndexGetter? findChildIndexCallback,
- double? maxCrossAxisExtent,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- double childAspectRatio = 1.0,
Implementation
const SGridView.builder({
super.key,
required this.builder,
this.crossAxisCount,
this.gridDelegate,
this.childCount,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.semanticIndexCallback = _kDefaultSemanticIndexCallback,
this.semanticIndexOffset = 0,
this.findChildIndexCallback,
this.maxCrossAxisExtent,
this.mainAxisSpacing = 0.0,
this.crossAxisSpacing = 0.0,
this.childAspectRatio = 1.0,
}) : children = const [];