copyWith method

PaginatedViewState<T, V> copyWith({
  1. List<PageChunk<T>>? items,
  2. V? currentOffset,
})

Implementation

PaginatedViewState<T, V> copyWith({
  List<PageChunk<T>>? items,
  V? currentOffset,
}) {
  return PaginatedViewState<T, V>(
    items ?? this._pages,
    nextOffset: currentOffset,
  );
}