Yapalivi<ItemType> constructor

const Yapalivi<ItemType>({
  1. Key? key,
  2. required IPagedProvider<ItemType> provider,
  3. required Widget itemBuilder(
    1. BuildContext context,
    2. int index,
    3. ItemType item
    ),
  4. Widget? separatorBuilder(
    1. BuildContext context,
    2. int previousIndex,
    3. int followingIndex,
    4. ItemType previousItem,
    5. ItemType followingItem,
    )?,
  5. Widget? placeholderWidget,
  6. Widget? noMoreItemsWidget,
  7. Iterable<ItemType> filterFunction(
    1. List<ItemType> elements
    )?,
  8. bool reverse = false,
  9. bool addAutomaticKeepAlives = true,
  10. bool addRepaintBoundaries = true,
  11. bool addSemanticIndexes = true,
  12. double? cacheExtent,
  13. Clip clipBehavior = Clip.hardEdge,
  14. ScrollController? controller,
  15. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  16. double? itemExtent,
  17. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  18. EdgeInsetsGeometry? padding,
  19. ScrollPhysics? physics,
  20. bool? primary,
  21. String? restorationId,
  22. Axis scrollDirection = Axis.vertical,
  23. int? semanticChildCount,
  24. bool shrinkWrap = false,
})

Implementation

const Yapalivi(
    {Key? key,
    required this.provider,
    required this.itemBuilder,
    this.separatorBuilder,
    this.placeholderWidget,
    this.noMoreItemsWidget,
    this.filterFunction,
    this.reverse = false,
    this.addAutomaticKeepAlives = true,
    this.addRepaintBoundaries = true,
    this.addSemanticIndexes = true,
    this.cacheExtent,
    this.clipBehavior = Clip.hardEdge,
    this.controller,
    this.dragStartBehavior = DragStartBehavior.start,
    this.itemExtent,
    this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
    this.padding,
    this.physics,
    this.primary,
    this.restorationId,
    this.scrollDirection = Axis.vertical,
    this.semanticChildCount,
    this.shrinkWrap = false})
    : super(key: key);