copyWith method
Creates a copy of this instance, replacing the specified fields.
Implementation
DataRefModel copyWith({
String? id,
List<String>? collection,
}) {
return DataRefModel.assertRequired(
id: id ?? this.id,
collection: collection ?? this.collection,
);
}