Sets a new formKey to the form manager.
formKey
void setFormKey(GlobalKey<FormState> formKey) { this.formKey = formKey; }