ValidationResult.fromError constructor
ValidationResult.fromError(
- String message
Creates a new validation result to represent an error.
Implementation
factory ValidationResult.fromError(String message) {
return ValidationResult(
hasError: true,
errors: <ValidationError>[ValidationError(message: message)]);
}