IsZeroValidator class

Validator metadata to check if number is zero

when value is not num, it will throw exception

Inheritance

Constructors

IsZeroValidator({String? fieldName, String? errorMessage})
const

Properties

defaultErrorMessage → String
default error message when errorMessage value is null
no setteroverride
errorMessage → String
get error message
no setterinherited
fieldName → String?
field name
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
name → String
decorator name
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

isValid(dynamic value) → bool
return true if value is zero
override
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?
inherited

Operators

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