LazyList<T> constructor
const
LazyList<T> ({
- Key? key,
- required dynamic buildItem(
- T data
- required Future<
List< load(),T> > - int initialIndex = 1,
- int pageSize = 10,
- VoidCallback? onRefreshComplete,
- VoidCallback? onRefreshFailed,
- VoidCallback? onLoadComplete,
- VoidCallback? onLoadFailed,
- ScrollController? scrollController,
Implementation
const LazyList(
{Key? key,
required this.buildItem,
required this.load,
this.initialIndex = 1,
this.pageSize = 10,
this.onRefreshComplete,
this.onRefreshFailed,
this.onLoadComplete,
this.onLoadFailed,
this.scrollController})
: super(key: key);