copyWith method

BaseUnauthorizedError copyWith({
  1. String? type,
  2. String? title,
  3. int? status,
  4. String? traceId,
})

Implementation

BaseUnauthorizedError copyWith({
  String? type,
  String? title,
  int? status,
  String? traceId,
}) {
  return BaseUnauthorizedError(
    type: type ?? this.type,
    title: title ?? this.title,
    status: status ?? this.status,
    traceId: traceId ?? this.traceId,
  );
}