isGt function
Checks whether the given value is greater than max
Implementation
Validator isGt(num min) {
return and(
isType<num>(),
(value) => Result(
isValid: value > min,
expected: 'greater than $min',
value: value,
),
);
}