updateItems method
Implementation
void updateItems(List<T> results) {
hasNoMoreItems = results.length < batchSize;
if (results.isEmpty) {
state = PaginatedState.data(items);
} else {
state = PaginatedState.data(items..addAll(results));
}
}