copyWithWrapped method

ValidationError copyWithWrapped({
  1. Wrapped<List<Object>>? loc,
  2. Wrapped<String>? msg,
  3. Wrapped<String>? type,
})

Implementation

ValidationError copyWithWrapped(
    {Wrapped<List<Object>>? loc,
    Wrapped<String>? msg,
    Wrapped<String>? type}) {
  return ValidationError(
      loc: (loc != null ? loc.value : this.loc),
      msg: (msg != null ? msg.value : this.msg),
      type: (type != null ? type.value : this.type));
}