greaterThan<T extends num, E> static method
Validates that the number is greater than threshold.
NumberRules.greaterThan(0, error: 'Must be positive')
Implementation
static Rule<T, E> greaterThan<T extends num, E>(
T threshold, {
required E error,
}) => PredicateRule(predicate: (value) => value > threshold, error: error);