withMessages method

FieldValidator<T, R> withMessages(
  1. ReadyValidationMessagesAr messages
)

replace the messages all the next validations will use the new messages the old messages will be kept in the _prevErrors

Implementation

FieldValidator<T, R> withMessages(ReadyValidationMessagesAr messages) {
  return FieldValidator<T, R>._(
    validate: _validate,
    prevErrors: _prevErrors,
    validatePrev: _validatePrev,
    convert: _convert,
    messages: messages,
  );
}