Triggers the validation of the entire form using the formKey. Returns true if the form is valid, false otherwise.
true
false
bool validate() => formKey.currentState?.validate() ?? false;