ValidatorNumber class Null safety

Validators that are specifically for num only

Inheritance

Constructors

ValidatorNumber(dynamic value)

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
value ↔ dynamic
read / writeinherited

Methods

between(num min, num max, {String errMsg(num min, num max)?}) ValidatorNumber
Makes sure the value is between min and max
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 and max range
inherited
lt(num limit, {String errMsg(num limit)?}) ValidatorNumber
Less than limit comparison
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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