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