copyWith method
PagingData<T>
copyWith({
- int? current,
- int? limit,
- Iterable<
T> ? values, - AsyncValue<
Iterable< ? lastValues,T> >
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,
);
}