updateItems method

void updateItems(
  1. List<T> results
)

Implementation

void updateItems(List<T> results) {
  hasNoMoreItems = results.length < batchSize;

  if (results.isEmpty) {
    state = PaginatedState.data(items);
  } else {
    state = PaginatedState.data(items..addAll(results));
  }
}