UPaginatedList<T> constructor
const
UPaginatedList<T> ({
- required Future<
List< fetch(T> >- int page
- required Widget itemBuilder(
- BuildContext context,
- T item,
- int index
- Key? key,
- int pageSize = 20,
- int firstPage = 1,
- Widget? separator,
- EdgeInsetsGeometry? padding,
- Widget? empty,
- Widget? header,
- ScrollController? controller,
- bool shrinkWrap = false,
- ScrollPhysics? physics,
A page shorter than pageSize means there is no more data.
Implementation
const UPaginatedList({
required this.fetch,
required this.itemBuilder,
super.key,
this.pageSize = 20,
this.firstPage = 1,
this.separator,
this.padding,
this.empty,
this.header,
this.controller,
this.shrinkWrap = false,
this.physics,
});