NumRangeValidator class
Validates that a value falls within a certain range. Will return true if the value is not present.
- Implemented types
- Available Extensions
Constructors
- NumRangeValidator(String name, {required num min, required num max})
-
name is split using '.' and the map is traversed sequentially until the
value is returned. Will Validate if that value is not true.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- max → num
-
The inclusive maximum of this range.
final
- message → String
-
The message to be displayed if validate fails.
no setteroverride
- min → num
-
The inclusive minimum of this range.
final
- name → String
-
name is split using '.' and the map is traversed sequentially until the
value is returned.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
Map< String, dynamic> map) → bool -
Returns true if the given
map
from BaseModel.toMap passes this Validator's check.override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited