addValidator method
Adds a validator for a specific form.
formName
- The name of the form for which the validator is added.
validator
- The map containing validation rules for the form.
Implementation
void addValidator(String formName, Map<String, dynamic> validator) {
_validator[formName] = validator;
}