NikuGridView.custom constructor

NikuGridView.custom({
  1. Key? key,
  2. Axis? scrollDirection,
  3. bool? reverse,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. bool? shrinkWrap,
  8. EdgeInsetsGeometry? padding,
  9. required SliverGridDelegate gridDelegate,
  10. required IndexedWidgetBuilder itemBuilder,
  11. int? itemCount,
  12. bool? addAutomaticKeepAlives,
  13. bool? addRepaintBoundaries,
  14. bool? addSemanticIndexes,
  15. double? cacheExtent,
  16. int? semanticChildCount,
  17. DragStartBehavior? dragStartBehavior,
  18. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  19. String? restorationId,
  20. Clip? clipBehavior,
})

Implementation

factory NikuGridView.custom({
  Key? key,
  Axis? scrollDirection,
  bool? reverse,
  ScrollController? controller,
  bool? primary,
  ScrollPhysics? physics,
  bool? shrinkWrap,
  EdgeInsetsGeometry? padding,
  required SliverGridDelegate gridDelegate,
  required IndexedWidgetBuilder itemBuilder,
  int? itemCount,
  bool? addAutomaticKeepAlives,
  bool? addRepaintBoundaries,
  bool? addSemanticIndexes,
  double? cacheExtent,
  int? semanticChildCount,
  DragStartBehavior? dragStartBehavior,
  ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  String? restorationId,
  Clip? clipBehavior,
}) =>
    NikuGridView(
      type: NikuGridViewType.custom,
      key: key,
      scrollDirection: scrollDirection,
      reverse: reverse,
      controller: controller,
      primary: primary,
      physics: physics,
      shrinkWrap: shrinkWrap,
      padding: padding?.asNiku,
      gridDelegate: gridDelegate,
      itemBuilder: itemBuilder,
      itemCount: itemCount,
      addAutomaticKeepAlives: addAutomaticKeepAlives,
      addRepaintBoundaries: addRepaintBoundaries,
      addSemanticIndexes: addSemanticIndexes,
      cacheExtent: cacheExtent,
      semanticChildCount: semanticChildCount,
      dragStartBehavior: dragStartBehavior,
      keyboardDismissBehavior: keyboardDismissBehavior,
      restorationId: restorationId,
      clipBehavior: clipBehavior,
    );