validateAllFields method

bool validateAllFields()

Validates all the form fields.

This method iterates through all the form fields and validates them based on the validation logic provided in each field's validator function. It returns true if all fields are valid; otherwise, it returns false.

Implementation

bool validateAllFields() {
  return validate();
}