copyWith method

ReferencedModel copyWith({
  1. String? id,
  2. DataRefModel? ref,
})

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

Implementation

ReferencedModel copyWith({
  String? id,
  DataRefModel? ref,
}) {
  return ReferencedModel.assertRequired(
    id: id ?? this.id,
    ref: ref ?? this.ref,
  );
}