copyWithWrapped method

BaseBadRequestError copyWithWrapped({
  1. Wrapped<String>? title,
  2. Wrapped<int>? status,
  3. Wrapped<Map<String, dynamic>>? errors,
})

Implementation

BaseBadRequestError copyWithWrapped({
  Wrapped<String>? title,
  Wrapped<int>? status,
  Wrapped<Map<String, dynamic>>? errors,
}) {
  return BaseBadRequestError(
    title: (title != null ? title.value : this.title),
    status: (status != null ? status.value : this.status),
    errors: (errors != null ? errors.value : this.errors),
  );
}