copyWith method

ResourceListData<T> copyWith({
  1. List<T>? items,
  2. List<T>? addedItems,
  3. List<T>? updatedItems,
})

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,
  );
}