loadPage method
Implementation
@override
List loadPage({int pageIndex = 0}) {
List? paginatedList = [];
switch(algorithmType) {
case PagingAlgorithmType.Sections: {
paginatedList = getSection(data, pageIndex, pageSize);
break;
}
case PagingAlgorithmType.Additive: {
paginatedList = getAddition(data, pageIndex, pageSize);
break;
}
}
currentPage = pageIndex;
return paginatedList ?? [];
}