greaterThan<T extends num, E> static method

Rule<T, E> greaterThan<T extends num, E>(
  1. T threshold, {
  2. required E error,
})

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