firstError property
FormValidationError?
get
firstError
The first failed rule's response, or null when every rule passed.
Unlike errorResponses this does not build a list, so it is safe to call on every keystroke.
Implementation
FormValidationError? get firstError {
for (final FormValidationResponse response in responses) {
if (response is FormValidationError) return response;
}
return null;
}