LyIntGreaterThan class

Validate the value is greater than limit.

If the provided value is less than or equal to limit then it will be invalid and will return the error message, otherwise it returns null.

Example:

final validation = IntGreaterThan(11, 'Must be greater than 11');
final result = validation(10);
print(result); // Must be greater than 11

Constructors

LyIntGreaterThan(int limit, String message)
Validate the value is greater than limit.

Properties

hashCode int
The hash code for this object.
no setterinherited
limit int
The limit to compare the value to.
final
message String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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