isGt function

IValidator isGt(
  1. num min
)

Checks whether the given value is greater than min

Implementation

IValidator isGt(num min) =>
    isType<num>() &
    validator(
        (value) => value > min,
        (value) => Expectation(
              message: 'greater than $min',
              value: value,
              code: 'value.range_out_of_bounds',
              data: {'operator': '>', 'limit': min},
            ));