error<T extends FormFieldState<G>, G> method

String? error<T extends FormFieldState<G>, G>(
  1. String fieldName
)

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;