copyWithout method

ReferencedModel copyWithout({
  1. bool id = true,
  2. bool ref = true,
})

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

Implementation

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