useFormContext<F extends FormSchema> function

FormFieldsController<F> useFormContext<F extends FormSchema>(
  1. BuildContext context
)

A hook that provides a FormFieldsController to the form fields.

Use this hook to access the FormFieldsController from the FormProvider. DO NOT use this hook to create a FormFieldsController, please see useForm instead.

Implementation

FormFieldsController<F> useFormContext<F extends FormSchema>(
  BuildContext context,
) {
  return FormProvider._of<F>(context);
}