InfiniteScrollGrid constructor
const
InfiniteScrollGrid({
- Key? key,
- required List<
Widget> children, - dynamic onLoadingStart(
- int page
- bool everythingLoaded = false,
- EdgeInsetsGeometry? padding,
- bool shrinkWrap = false,
- ScrollPhysics? physics,
- bool reverse = false,
- bool? primary,
- double? itemExtent,
- Widget? prototypeItem,
- double? cacheExtent,
- int? semanticChildCount,
- String? restorationId,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- Clip clipBehavior = Clip.hardEdge,
- Widget? loadingWidget,
- Axis scrollDirection = Axis.vertical,
- required int crossAxisCount,
- double crossAxisSpacing = 0.0,
- double mainAxisSpacing = 0.0,
- double childAspectRatio = 1.0,
Implementation
const InfiniteScrollGrid({
Key? key,
required this.children,
this.onLoadingStart,
this.everythingLoaded = false,
this.padding,
this.shrinkWrap = false,
this.physics,
this.reverse = false,
this.primary,
this.itemExtent,
this.prototypeItem,
this.cacheExtent,
this.semanticChildCount,
this.restorationId,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.clipBehavior = Clip.hardEdge,
this.loadingWidget,
this.scrollDirection = Axis.vertical,
required this.crossAxisCount,
this.crossAxisSpacing = 0.0,
this.mainAxisSpacing = 0.0,
this.childAspectRatio = 1.0,
}) : super(key: key);