copyWith method
Implementation
ResourceListData<T> copyWith({
List<T>? items,
List<T>? addedItems,
List<T>? updatedItems,
}) {
return ResourceListData(
items: items ?? this.items,
addedItems: addedItems ?? newItems,
updatedItems: updatedItems ?? this.updatedItems,
);
}