NikuGridView.count constructor

NikuGridView.count({
  1. List<Widget>? children,
  2. int? crossAxisCount,
  3. Key? key,
  4. Axis? scrollDirection,
  5. bool? reverse,
  6. ScrollController? controller,
  7. bool? primary,
  8. ScrollPhysics? physics,
  9. bool? shrinkWrap,
  10. EdgeInsetsGeometry? padding,
  11. double? mainAxisSpacing,
  12. double? crossAxisSpacing,
  13. double? childAspectRatio,
  14. bool? addAutomaticKeepAlives,
  15. bool? addRepaintBoundaries,
  16. bool? addSemanticIndexes,
  17. double? cacheExtent,
  18. int? semanticChildCount,
  19. DragStartBehavior? dragStartBehavior,
  20. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  21. String? restorationId,
  22. 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,
    );