shouldRequestNextPage method
Determine whether the next page should be fetched based on the current index
Implementation
bool shouldRequestNextPage(int currentIndex) {
final itemCount = state.itemList?.length ?? 0;
final requestThreshold = itemCount - 3; // Invisible item threshold
return currentIndex >= requestThreshold;
}