copyWith method

PagingData<T> copyWith({
  1. int? current,
  2. int? limit,
  3. Iterable<T>? values,
  4. AsyncValue<Iterable<T>>? lastValues,
})

Implementation

PagingData<T> copyWith({
  int? current,
  int? limit,
  Iterable<T>? values,
  AsyncValue<Iterable<T>>? lastValues,
}) {
  return PagingData(
    current ?? this.current,
    limit ?? this.limit,
    values ?? this.values,
    lastValues ?? this.lastValues,
    _token,
  );
}