validators library

Functions

check(bool condition, [Object? message]) → void
checkEq(int value, int limit, [Object? label]) → void
Asserts that value is equal to limit.
checkGt(int value, int limit, [Object? label]) → void
Asserts that value is greater than limit.
checkGte(int value, int limit, [Object? label]) → void
Asserts that value is greater than or equal to limit.
checkLt(int value, int limit, [Object? label]) → void
Asserts that value is less than limit.
checkLte(int value, int limit, [Object? label]) → void
Asserts that value is less than or equal to limit.
checkThrow(bool condition, Object callback()) → void
Asserts that condition is true.