error<T extends FormFieldState<G> , G> method
Gets the error message for a form field by its fieldName
.
Implementation
String? error<T extends FormFieldState<G>, G>(String fieldName) =>
get<T, G>(fieldName).error;