copyWith method

EntityDelta<T> copyWith({
  1. List<T>? added,
  2. List<T>? removed,
  3. List<(T, T)>? moved,
  4. List<(T, T)>? updated,
})

Implementation

EntityDelta<T> copyWith({
  List<T>? added,
  List<T>? removed,
  List<(T, T)>? moved,
  List<(T, T)>? updated,
}) {
  return EntityDelta<T>(
    added: added ?? this.added,
    removed: removed ?? this.removed,
    moved: moved ?? this.moved,
    updated: updated ?? this.updated,
  );
}