isLt function

IValidator isLt(
  1. num max
)

Checks whether the given value is less than max

Implementation

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