ResponsiveGridView.builder constructor

ResponsiveGridView.builder({
  1. Key? key,
  2. BreakpointsData<Axis>? scrollDirection,
  3. BreakpointsData<bool>? reverse,
  4. ScrollController? controller,
  5. bool? primary,
  6. BreakpointsData<ScrollPhysics>? physics,
  7. BreakpointsData<bool>? shrinkWrap,
  8. BreakpointsData<EdgeInsets>? padding,
  9. required SliverGridDelegate gridDelegate,
  10. required IndexedWidgetBuilder itemBuilder,
  11. ChildIndexGetter? findChildIndexCallback,
  12. int? itemCount,
  13. bool addAutomaticKeepAlives = true,
  14. bool addRepaintBoundaries = true,
  15. bool addSemanticIndexes = true,
  16. double? cacheExtent,
  17. int? semanticChildCount,
  18. BreakpointsData<DragStartBehavior>? dragStartBehavior,
  19. BreakpointsData<ScrollViewKeyboardDismissBehavior>? keyboardDismissBehavior,
  20. String? restorationId,
  21. BreakpointsData<Clip>? clipBehavior,
})

Same as GridView.builder.

Implementation

ResponsiveGridView.builder({
  super.key,
  this.scrollDirection,
  this.reverse,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap,
  this.padding,
  required this.gridDelegate,
  required IndexedWidgetBuilder itemBuilder,
  ChildIndexGetter? findChildIndexCallback,
  int? itemCount,
  bool addAutomaticKeepAlives = true,
  bool addRepaintBoundaries = true,
  bool addSemanticIndexes = true,
  this.cacheExtent,
  this.semanticChildCount,
  this.dragStartBehavior,
  this.keyboardDismissBehavior,
  this.restorationId,
  this.clipBehavior,
}) : childrenDelegate = SliverChildBuilderDelegate(
        itemBuilder,
        findChildIndexCallback: findChildIndexCallback,
        childCount: itemCount,
        addAutomaticKeepAlives: addAutomaticKeepAlives,
        addRepaintBoundaries: addRepaintBoundaries,
        addSemanticIndexes: addSemanticIndexes,
      );