MaxRule<T> constructor
MaxRule<T> (
- num max, {
- MaxRuleError? stringError,
- MaxRuleError? numberError,
- MaxRuleError? listError,
Implementation
MaxRule(
this.max, {
MaxRuleError? stringError,
MaxRuleError? numberError,
MaxRuleError? listError,
}) : _stringError = stringError ?? MaxRuleError.string(max.toInt()),
_numberError = numberError ?? MaxRuleError.number(max.toInt()),
_listError = listError ?? MaxRuleError.list(max.toInt());