isGt function

Validator isGt(
  1. num min
)

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,
    ),
  );
}