copyWith method

BaseNotFoundError copyWith({
  1. String? title,
  2. int? status,
  3. String? detail,
  4. String? instance,
  5. int? entityId,
  6. String? traceId,
})

Implementation

BaseNotFoundError copyWith({
  String? title,
  int? status,
  String? detail,
  String? instance,
  int? entityId,
  String? traceId,
}) {
  return BaseNotFoundError(
    title: title ?? this.title,
    status: status ?? this.status,
    detail: detail ?? this.detail,
    instance: instance ?? this.instance,
    entityId: entityId ?? this.entityId,
    traceId: traceId ?? this.traceId,
  );
}