copyWith method
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,
);
}