NumberValidationExtension<T> extension
Methods
-
greaterThan(num min, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is greater than
min
-
greaterThanFn(ValueGetter<num> min, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is greater than
min
-
greaterThanOrEqual(num min, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is less than or equal
min
-
greaterThanOrEqualFn(ValueGetter<num> min, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is less than or equal
min
-
isBetween(num min, num max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is between
min
and max
-
isBetweenFn(ValueGetter<num> min, ValueGetter<num> max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is between
min
and max
-
isBetweenOrEqual(num min, num max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is between
min
and max
and equal them
-
isBetweenOrEqualFn(ValueGetter<num> min, ValueGetter<num> max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is between
min
and max
and equal them
-
isDivisibleBy(num other, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is divisible by
other
-
isDivisibleByFn(ValueGetter<num> other, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is divisible by
other
-
isNegative([MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is negative
-
isPositive([MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is positive
-
lessThan(num max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is less than
max
-
lessThanFn(ValueGetter<num> max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is less than
max
-
lessThanOrEqual(num max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is greater than or equal
max
-
lessThanOrEqualFn(ValueGetter<num> max, [MessageCallBack<num>? message])
→ FieldValidator<T, num>
-
check if the value is greater than or equal
max