NyListView<T> constructor

NyListView<T>({
  1. Key? key,
  2. required Widget child(
    1. BuildContext context,
    2. dynamic data
    ),
  3. required Future data(),
  4. dynamic transform(
    1. List<T> data
    )?,
  5. Widget? empty,
  6. Widget? loading,
  7. String? stateName,
  8. Axis? scrollDirection,
  9. bool? reverse,
  10. ScrollController? controller,
  11. bool? primary,
  12. ScrollPhysics? physics,
  13. bool? shrinkWrap,
  14. EdgeInsets? padding,
  15. double? itemExtent,
  16. Widget? prototypeItem,
  17. ChildIndexGetter? findChildIndexCallback,
  18. bool addAutomaticKeepAlives = true,
  19. bool addRepaintBoundaries = true,
  20. bool addSemanticIndexes = true,
  21. double? cacheExtent,
  22. int? semanticChildCount,
  23. DragStartBehavior? dragStartBehavior,
  24. ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
  25. String? restorationId,
  26. Clip? clipBehavior,
  27. bool? useSkeletonizer,
  28. Widget? header,
  29. dynamic sort(
    1. List<T> items
    )?,
})

Implementation

NyListView(
    {Key? key,
    required this.child,
    required this.data,
    this.transform,
    this.empty,
    this.loading,
    this.stateName,
    this.scrollDirection,
    this.reverse,
    this.controller,
    this.primary,
    this.physics,
    this.shrinkWrap,
    this.padding,
    this.itemExtent,
    this.prototypeItem,
    this.findChildIndexCallback,
    this.addAutomaticKeepAlives = true,
    this.addRepaintBoundaries = true,
    this.addSemanticIndexes = true,
    this.cacheExtent,
    this.semanticChildCount,
    this.dragStartBehavior,
    this.keyboardDismissBehavior,
    this.restorationId,
    this.clipBehavior,
    this.useSkeletonizer,
    this.header,
    this.sort})
    : kind = "builder",
      separatorBuilder = null,
      crossAxisCount = null,
      mainAxisSpacing = null,
      crossAxisSpacing = null,
      super(key: key);