NikuGridView.count constructor
NikuGridView.count({
- List<
Widget> ? children, - int? crossAxisCount,
- Key? key,
- Axis? scrollDirection,
- bool? reverse,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool? shrinkWrap,
- EdgeInsetsGeometry? 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,
Implementation
factory NikuGridView.count({
List<Widget>? children,
int? crossAxisCount,
Key? key,
Axis? scrollDirection,
bool? reverse,
ScrollController? controller,
bool? primary,
ScrollPhysics? physics,
bool? shrinkWrap,
EdgeInsetsGeometry? 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,
}) =>
NikuGridView(
type: NikuGridViewType.count,
key: key,
itemCount: crossAxisCount ?? 1,
children: children,
scrollDirection: scrollDirection,
reverse: reverse,
controller: controller,
primary: primary,
physics: physics,
shrinkWrap: shrinkWrap,
padding: padding?.asNiku,
mainAxisSpacing: mainAxisSpacing,
crossAxisSpacing: crossAxisSpacing,
childAspectRatio: childAspectRatio,
addAutomaticKeepAlives: addAutomaticKeepAlives,
addRepaintBoundaries: addRepaintBoundaries,
addSemanticIndexes: addSemanticIndexes,
cacheExtent: cacheExtent,
semanticChildCount: semanticChildCount,
dragStartBehavior: dragStartBehavior,
keyboardDismissBehavior: keyboardDismissBehavior,
restorationId: restorationId,
clipBehavior: clipBehavior,
);