NikuGridView.builder constructor
NikuGridView.builder({
- Key? key,
- required IndexedWidgetBuilder itemBuilder,
- required SliverGridDelegate? gridDelegate,
- int? itemCount,
- Axis? scrollDirection,
- bool? reverse,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- NikuEdgeInsets? padding,
- double? mainAxisSpacing,
- double? crossAxisSpacing,
- double? childAspectRatio,
- bool? addAutomaticKeepAlives,
- bool? addRepaintBoundaries,
- bool? addSemanticIndexes,
- double? cacheExtent,
- int? semanticChildCount,
- DragStartBehavior? dragStartBehavior,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- String? restorationId,
- Clip? clipBehavior,
- double? maxCrossExtent,
Implementation
factory NikuGridView.builder({
Key? key,
required IndexedWidgetBuilder itemBuilder,
required SliverGridDelegate? gridDelegate,
int? itemCount,
Axis? scrollDirection,
bool? reverse,
ScrollController? controller,
bool? primary,
ScrollPhysics? physics,
bool? shrinkWrap,
NikuEdgeInsets? padding,
double? mainAxisSpacing,
double? crossAxisSpacing,
double? childAspectRatio,
bool? addAutomaticKeepAlives,
bool? addRepaintBoundaries,
bool? addSemanticIndexes,
double? cacheExtent,
int? semanticChildCount,
DragStartBehavior? dragStartBehavior,
ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
String? restorationId,
Clip? clipBehavior,
double? maxCrossExtent,
}) =>
NikuGridView(
type: NikuGridViewType.builder,
key: key,
itemCount: itemCount,
scrollDirection: scrollDirection,
reverse: reverse,
controller: controller,
primary: primary,
physics: physics,
shrinkWrap: shrinkWrap,
padding: padding,
mainAxisSpacing: mainAxisSpacing,
crossAxisSpacing: crossAxisSpacing,
childAspectRatio: childAspectRatio,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
cacheExtent: cacheExtent,
semanticChildCount: semanticChildCount,
dragStartBehavior: dragStartBehavior,
keyboardDismissBehavior: keyboardDismissBehavior,
restorationId: restorationId,
clipBehavior: clipBehavior,
maxCrossExtent: maxCrossExtent,
itemBuilder: itemBuilder,
childrenDelegate: SliverChildBuilderDelegate(
itemBuilder,
childCount: itemCount,
addAutomaticKeepAlives: addAutomaticKeepAlives ?? true,
addRepaintBoundaries: addRepaintBoundaries ?? true,
addSemanticIndexes: addSemanticIndexes ?? true,
),
);