valid<T extends FormFieldState<G> , G> method
Checks the validity of a form field by its fieldName.
fieldNameThe name of the field to validate.- Returns:
trueif the field is valid,falseotherwise.
Implementation
bool valid<T extends FormFieldState<G>, G>(String fieldName) =>
get<T, G>(fieldName).validate(fields) == null;