NikuListView.separated constructor

NikuListView.separated({
  1. Key? key,
  2. Axis? scrollDirection,
  3. bool? reverse,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. bool? shrinkWrap,
  8. NikuEdgeInsets? padding,
  9. IndexedWidgetBuilder? itemBuilder,
  10. IndexedWidgetBuilder? separatorBuilder,
  11. Color? separatorColor,
  12. double? sepearatorHeight,
  13. int itemCount = 0,
  14. bool? addAutomaticKeepAlives,
  15. bool? addRepaintBoundaries,
  16. bool? addSemanticIndexes,
  17. double? cacheExtent,
  18. DragStartBehavior? dragStartBehavior,
  19. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  20. String? restorationId,
  21. Clip? clipBehavior,
})

Implementation

factory NikuListView.separated({
  Key? key,
  Axis? scrollDirection,
  bool? reverse,
  ScrollController? controller,
  bool? primary,
  ScrollPhysics? physics,
  bool? shrinkWrap,
  NikuEdgeInsets? padding,
  IndexedWidgetBuilder? itemBuilder,
  IndexedWidgetBuilder? separatorBuilder,
  Color? separatorColor,
  double? sepearatorHeight,
  int itemCount = 0,
  bool? addAutomaticKeepAlives,
  bool? addRepaintBoundaries,
  bool? addSemanticIndexes,
  double? cacheExtent,
  DragStartBehavior? dragStartBehavior,
  ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  String? restorationId,
  Clip? clipBehavior,
}) =>
    NikuListView(
      key: key,
      type: NikuListViewType.separated,
      scrollDirection: scrollDirection,
      reverse: reverse,
      controller: controller,
      primary: primary,
      physics: physics,
      shrinkWrap: shrinkWrap,
      padding: padding,
      itemBuilder: itemBuilder,
      separatorBuilder: separatorBuilder ??
          (context, index) => Divider(
                key: key,
                color: separatorColor,
                height: sepearatorHeight,
              ),
      itemCount: itemCount,
      addAutomaticKeepAlives: addAutomaticKeepAlives,
      addRepaintBoundaries: addRepaintBoundaries,
      addSemanticIndexes: addSemanticIndexes,
      cacheExtent: cacheExtent,
      dragStartBehavior: dragStartBehavior,
      keyboardDismissBehavior: keyboardDismissBehavior,
      restorationId: restorationId,
      clipBehavior: clipBehavior,
    );