loadPage method

  1. @override
List loadPage({
  1. int pageIndex = 0,
})
override

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 ?? [];
}