LyIntLesserEquealThan class
Validate the value
is less than or equal to limit.
If the provided value
is lesser ot queal to than limit then it will be
invalid and will return the error message, otherwise it returns null.
Example:
final validation = IntLessEqualThan(8, 'Must be less than or equal to 8');
final result = validation(10);
print(result); // Must be less than or equal to 8
Constructors
- LyIntLesserEquealThan(int limit, String message)
-
Validate the
value
is less than or equal to limit.
Properties
Methods
-
call(
int value) → String? -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator &(
LyBaseValidator< int> other) → LyBaseValidator<int> -
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator |(
LyBaseValidator< int> other) → LyBaseValidator<int> -
inherited