ValidationResult.error constructor

ValidationResult.error(
  1. String message, {
  2. String? gotPart,
  3. String? hint,
})

Implementation

factory ValidationResult.error(String message, {String? gotPart, String? hint}) {
  return ValidationResult(isValid: false, errorMessage: message, gotPart: gotPart, hint: hint);
}