isLt function

IEskValidator isLt(
  1. num max
)

/////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////// Checks whether the given value is less than max

Implementation

// Logic/comparison Validators
//////////////////////////////////////////////////////////////////////////////////

/// Checks whether the given value is less than [max]
IEskValidator isLt(num max) =>
    isType<num>() & validator((value) => value < max, (value) => 'less than $max');