ValidatorNumber class
Validators that are specifically for num only
Constructors
- ValidatorNumber(dynamic value)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value ↔ dynamic
-
getter/setter pairinherited
Methods
-
between(
num min, num max, {String errMsg(num min, num max)?}) → ValidatorNumber -
Makes sure the value is between
min
andmax
-
build(
) → String? -
inherited
-
gt(
num limit, {String errMsg(num limit)?}) → ValidatorNumber -
Greater than
limit
comparison -
length(
{int min = 0, int max = int64Max, String errMsg(String val, int min, int max)?}) → Validator -
Checks the length of the value
makes sure it's between
min
andmax
rangeinherited -
lt(
num limit, {String errMsg(num limit)?}) → ValidatorNumber -
Less than
limit
comparison -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
optional(
) → Validator -
inherited
-
positive(
{String errMsg = 'Must be positive'}) → ValidatorNumber - Ensures the value can not be negative
-
required(
{String errMsg = 'Field is required'}) → ValidatorNumber -
toString(
) → String -
A string representation of this object.
inherited
-
unless(
ValidationUnless checker) → Validator -
inherited
-
validate(
ValidationRule rule) → Validator -
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited