ResponsiveGridView constructor
ResponsiveGridView({
- Key? key,
- BreakpointsData<
Axis> ? scrollDirection, - BreakpointsData<
bool> ? reverse, - ScrollController? controller,
- bool? primary,
- BreakpointsData<
ScrollPhysics> ? physics, - BreakpointsData<
bool> ? shrinkWrap, - BreakpointsData<
EdgeInsets> ? padding, - required SliverGridDelegate gridDelegate,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- List<
Widget> children = const [], - int? semanticChildCount,
- BreakpointsData<
DragStartBehavior> ? dragStartBehavior, - BreakpointsData<
Clip> ? clipBehavior, - BreakpointsData<
ScrollViewKeyboardDismissBehavior> ? keyboardDismissBehavior, - String? restorationId,
Same as GridView
Implementation
ResponsiveGridView({
super.key,
this.scrollDirection,
this.reverse,
this.controller,
this.primary,
this.physics,
this.shrinkWrap,
this.padding,
required this.gridDelegate,
bool addAutomaticKeepAlives = true,
bool addRepaintBoundaries = true,
bool addSemanticIndexes = true,
this.cacheExtent,
List<Widget> children = const [],
this.semanticChildCount,
this.dragStartBehavior,
this.clipBehavior,
this.keyboardDismissBehavior,
this.restorationId,
}) : childrenDelegate = SliverChildListDelegate(
children,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
);