copyWith method

ProblemDetails copyWith({
  1. String? type,
  2. String? title,
  3. int? status,
  4. String? detail,
  5. String? instance,
})

Implementation

ProblemDetails copyWith(
    {String? type,
    String? title,
    int? status,
    String? detail,
    String? instance}) {
  return ProblemDetails(
      type: type ?? this.type,
      title: title ?? this.title,
      status: status ?? this.status,
      detail: detail ?? this.detail,
      instance: instance ?? this.instance);
}