copyWith method

FieldUpdateOperation copyWith({
  1. dynamic add,
  2. dynamic copy,
  3. dynamic edit,
  4. dynamic remove,
  5. dynamic set,
})

Implementation

FieldUpdateOperation copyWith(
    {dynamic add, dynamic copy, dynamic edit, dynamic remove, dynamic set}) {
  return FieldUpdateOperation(
    add: add ?? this.add,
    copy: copy ?? this.copy,
    edit: edit ?? this.edit,
    remove: remove ?? this.remove,
    set: set ?? this.set,
  );
}