DyListViewController<T> constructor
DyListViewController<T> ({
- int pageStart = 0,
- ScrollController? scrollController,
- Axis direction = Axis.vertical,
- required void refreshStateParentWidget(),
- List<
DyItemData< filterListData(T> >- List<
DyItemData< T> >
- List<
- List<
DyDataGroup> groupListData(- List<
DyItemData< T> >
- List<
- required Future<
List< fetchData(),DyItemData< >T> > - bool isSameItemData(
- DyItemData<
T> , - T
- DyItemData<
- DyFetchCustomParamConfig? customParamOnFetchConfig,
Implementation
DyListViewController({
this.pageStart = 0,
ScrollController? scrollController,
this.direction = Axis.vertical,
required this.refreshStateParentWidget,
this.filterListData,
this.groupListData,
/// Future Function to fetch data
required Future<List<DyItemData<T>>> Function(
DyFetchParam, DyFetchCustomParam?)
fetchData,
this.isSameItemData,
this.customParamOnFetchConfig,
}) : scroll = scrollController ?? ScrollController(),
isScrollControllerOutside = scrollController != null {
_fetchData = fetchData;
if (pageStart != 0) page = pageStart;
}