copyWith method
PagedState<T>
copyWith({
- PagedStatus? status,
- List<
FireData< ? items,T> > - String? message,
- RefreshStatus? refreshStatus,
- List<
FireData< ? addedItems,T> > - List<
FireData< ? updatedItems,T> > - int? updatedAt,
Implementation
PagedState<T> copyWith({
PagedStatus? status,
List<FireData<T>>? items,
String? message,
RefreshStatus? refreshStatus,
List<FireData<T>>? addedItems,
List<FireData<T>>? updatedItems,
int? updatedAt,
}) {
return PagedState(
status: status ?? this.status,
items: items ?? this.items,
message: message,
refreshStatus: refreshStatus ?? RefreshStatus.initial,
addedItems: addedItems ?? newItems,
updatedItems: updatedItems ?? this.updatedItems,
updatedAt: updatedAt,
);
}