NikuGridView.builder constructor

NikuGridView.builder({
  1. Key? key,
  2. required IndexedWidgetBuilder itemBuilder,
  3. required SliverGridDelegate? gridDelegate,
  4. int? itemCount,
  5. Axis? scrollDirection,
  6. bool? reverse,
  7. ScrollController? controller,
  8. bool? primary,
  9. ScrollPhysics? physics,
  10. bool? shrinkWrap,
  11. NikuEdgeInsets? padding,
  12. double? mainAxisSpacing,
  13. double? crossAxisSpacing,
  14. double? childAspectRatio,
  15. bool? addAutomaticKeepAlives,
  16. bool? addRepaintBoundaries,
  17. bool? addSemanticIndexes,
  18. double? cacheExtent,
  19. int? semanticChildCount,
  20. DragStartBehavior? dragStartBehavior,
  21. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  22. String? restorationId,
  23. Clip? clipBehavior,
  24. 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,
      ),
    );