You will need to provide a general FormState key to control, validate and save the form data based on your needs.
final GlobalKey<FormState>? formKey;