copyWith<T extends Model> method
Returns a new copy of the Model with the fields updated from the other
Model.
Implementation
T copyWith<T extends Model>(
Model? other,
) {
return this.copy<T>()..updateWith(other);
}