SGridView.builder constructor

const SGridView.builder({
  1. Key? key,
  2. required NullableIndexedWidgetBuilder? builder,
  3. int? crossAxisCount,
  4. SliverGridDelegate? gridDelegate,
  5. int? childCount,
  6. bool addAutomaticKeepAlives = true,
  7. bool addRepaintBoundaries = true,
  8. bool addSemanticIndexes = true,
  9. SemanticIndexCallback semanticIndexCallback = _kDefaultSemanticIndexCallback,
  10. int semanticIndexOffset = 0,
  11. ChildIndexGetter? findChildIndexCallback,
  12. double? maxCrossAxisExtent,
  13. double mainAxisSpacing = 0.0,
  14. double crossAxisSpacing = 0.0,
  15. 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 [];