rules property
Map<String, List<FormifyRule> >
get
rules
A getter that returns a map of validation rules for form fields.
This getter provides a map where the keys represent the names or identifiers of form fields, and the corresponding values are lists of FormifyRule. Each validation rule is associated with a specific form field and defines the validation criteria for that field.
Example usage:
Map<String, List<FormifyRule>> get rules => {
'first_name': [FormifyRule.required],
'last_name': [FormifyRule.required],
'email_address': [FormifyRule.required, FormifyRule.email],
'password': [FormifyRule.required, FormifyRule.min(6)],
};
Implementation
Map<String, List<FormifyRule>> get rules => {};