greaterThan method
Checks if the object is a number and is greater than another number
Implementation
AbstractRuleBuilder greaterThan(int max, {String? message}) {
return must(
(dynamic dyn) => dyn is num && dyn > max,
message != null
? message
: useKeyAsElementName
? "$key must be greater than $max"
: "Number must be greater than $max",
code: "notGreaterThan");
}