Creates a widget that pages through a lazily constructed list of children.
The scrollDirection
, scrollAnchor
, and itemsSnapAlignment
arguments
must not be null.
Source
PageableLazyList({ Key key, double initialScrollOffset, Axis scrollDirection: Axis.vertical, ViewportAnchor scrollAnchor: ViewportAnchor.start, ScrollListener onScrollStart, ScrollListener onScroll, ScrollListener onScrollEnd, SnapOffsetCallback snapOffsetCallback, PageableListFlingBehavior itemsSnapAlignment: PageableListFlingBehavior.stopAtNextPage, ValueChanged<int> onPageChanged, Duration duration: const Duration(milliseconds: 200), Curve curve: Curves.ease, this.itemCount: 0, this.itemBuilder }) : super( key: key, initialScrollOffset: initialScrollOffset, scrollDirection: scrollDirection, scrollAnchor: scrollAnchor, onScrollStart: onScrollStart, onScroll: onScroll, onScrollEnd: onScrollEnd, snapOffsetCallback: snapOffsetCallback, itemsWrap: false, itemsSnapAlignment: itemsSnapAlignment, onPageChanged: onPageChanged, duration: duration, curve: curve );