copyWith<T extends Model> method

T copyWith<T extends Model>(
  1. Model? other
)

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