LazyList<T> constructor

const LazyList<T>({
  1. Key? key,
  2. required dynamic buildItem(
    1. T data
    ),
  3. required Future<List<T>> load(
    1. int pageSize,
    2. int pageIndex
    ),
  4. int initialIndex = 1,
  5. int pageSize = 10,
  6. VoidCallback? onRefreshComplete,
  7. VoidCallback? onRefreshFailed,
  8. VoidCallback? onLoadComplete,
  9. VoidCallback? onLoadFailed,
  10. 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);