lessThanOrEqual method
Checks if the object is a number and is less than or equal another value
Implementation
AbstractRuleBuilder lessThanOrEqual(int min, {String? message}) {
return must(
(dynamic dyn) => dyn is num && dyn <= min,
message != null
? message
: useKeyAsElementName
? '$key must be less than or equal to $min'
: "Number must be less than or equal to $min",
code: "notLessThanOrEqual");
}