errorMessage property
Gets the error message to display when validation fails.
This should provide a clear explanation of the validation requirements.
Example:
if (!validator.isValid(uri)) {
throw FormatException(validator.errorMessage);
}
Implementation
@override
String get errorMessage => 'URI must include a hostname';