copyWithout method

DataRefModel copyWithout({
  1. bool id = true,
  2. bool collection = true,
})

Creates a copy of this instance, removing the specified fields.

Implementation

DataRefModel copyWithout({
  bool id = true,
  bool collection = true,
}) {
  return DataRefModel.assertRequired(
    id: id ? this.id : null,
    collection: collection ? this.collection : null,
  );
}