addRule static method
- ValidationRule rule
Adds a custom rule class.
FormRules.addRule(MyRule()).build()
Implementation
static Validator addRule(ValidationRule rule) => Validator._()..addRule(rule);
Adds a custom rule class.
FormRules.addRule(MyRule()).build()
static Validator addRule(ValidationRule rule) => Validator._()..addRule(rule);