NumberValidation<T extends Comparable<Object> > class
It allows you to validate a field of type Comparable but you can usually use it to validate fields of type:
- Inheritance
-
- Object
- Validation<
T> - NumberValidation
Constructors
- NumberValidation({String? errorCode, T? greaterThan, T? lessThan, T? greaterOrEqualThan, T? lessOrEqualThan})
-
const
Properties
- errorCode → String?
-
Use a custom error string to differentiate between errors
finalinherited
- greaterOrEqualThan → T?
-
final
- greaterThan → T?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- lessOrEqualThan → T?
-
final
- lessThan → T?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
call(
T value) → Object? -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited