SparkNumberValidator class

Inheritance

Constructors

SparkNumberValidator.length({required int integerLength, required int decimalLength, required String errorMessage, VerifyType type = VerifyType.all, FormStrategy strategy = FormStrategy.limit})
setup number integer part length and decimal part length
SparkNumberValidator.number({required String errorMessage, VerifyType type = VerifyType.all, FormStrategy strategy = FormStrategy.limit})
number only
SparkNumberValidator.range({required double max, required double min, required String errorMessage, VerifyType type = VerifyType.all, FormStrategy strategy = FormStrategy.limit})
setup number range

Properties

decimalLength int
getter/setter pair
errorMessage String
verify error message
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
integerLength int
getter/setter pair
max double
getter/setter pair
min double
getter/setter pair
rule RegExp
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
strategy FormStrategy
validate strategy
getter/setter pairinherited
type VerifyType
validate type
getter/setter pairinherited

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(dynamic value, String fieldName, VerifyType? type) ValidateResult
validate rule
override

Operators

operator ==(Object other) bool
The equality operator.
inherited