copyWith method

DataRefModel copyWith({
  1. String? id,
  2. List<String>? collection,
})

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