Yapalivi<ItemType> constructor
const
Yapalivi<ItemType> ({
- Key? key,
- required IPagedProvider<
ItemType> provider, - required Widget itemBuilder(
- BuildContext context,
- int index,
- ItemType item
- Widget? separatorBuilder(
- BuildContext context,
- int previousIndex,
- int followingIndex,
- ItemType previousItem,
- ItemType followingItem,
- Widget? placeholderWidget,
- Widget? noMoreItemsWidget,
- Iterable<
ItemType> filterFunction(- List<
ItemType> elements
- List<
- bool reverse = false,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- Clip clipBehavior = Clip.hardEdge,
- ScrollController? controller,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- double? itemExtent,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- EdgeInsetsGeometry? padding,
- ScrollPhysics? physics,
- bool? primary,
- String? restorationId,
- Axis scrollDirection = Axis.vertical,
- int? semanticChildCount,
- 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);