SuperGridView<T>.extent constructor

SuperGridView<T>.extent({
  1. Key? key,
  2. required SuperScrollController<T> controller,
  3. required SuperItemBuilder<T> itemBuilder,
  4. required double maxCrossAxisExtent,
  5. double mainAxisSpacing = 0.0,
  6. double crossAxisSpacing = 0.0,
  7. double childAspectRatio = 1.0,
  8. EdgeInsetsGeometry? padding,
  9. ScrollPhysics? physics,
  10. bool shrinkWrap = false,
  11. bool reverse = false,
  12. VoidCallback? onRefresh,
  13. ScrollController? scrollController,
  14. Widget? newPageProgressIndicator,
  15. Widget? firstPageProgressIndicator,
  16. Widget? firstPageErrorIndicator,
  17. Widget? newPageErrorIndicator,
  18. Widget? noItemsFoundIndicator,
  19. Widget? noMoreItemsIndicator,
})

Implementation

SuperGridView.extent({
  super.key,
  required this.controller,
  required this.itemBuilder,
  required double maxCrossAxisExtent,
  double mainAxisSpacing = 0.0,
  double crossAxisSpacing = 0.0,
  double childAspectRatio = 1.0,
  this.padding,
  this.physics,
  this.shrinkWrap = false,
  this.reverse = false,
  this.onRefresh,
  this.scrollController,
  this.newPageProgressIndicator,
  this.firstPageProgressIndicator,
  this.firstPageErrorIndicator,
  this.newPageErrorIndicator,
  this.noItemsFoundIndicator,
  this.noMoreItemsIndicator,
}) : gridDelegate = SliverGridDelegateWithMaxCrossAxisExtent(
        maxCrossAxisExtent: maxCrossAxisExtent,
        mainAxisSpacing: mainAxisSpacing,
        crossAxisSpacing: crossAxisSpacing,
        childAspectRatio: childAspectRatio,
      );