loadMoreItems method
void
loadMoreItems()
Implementation
void loadMoreItems() async {
if (isLoadingMore.value || currentPage.value >= totalPages.value) {
return; // Avoid loading more if already loading or we've reached the last page
}
isLoadingMore.value = true; // Start loading new items
await Future.delayed(const Duration(seconds: 1)); // Simulating network delay
currentPage.value++;
paginate();
isLoadingMore.value = false; // Stop loading once new items are appended
}