FieldValidator enum

This enum should be used to specify the validation type. The Field decorator has a property validator which expects a List<Map<FieldValidator, dynamic>>. validator: { FieldValidator.required: {'message': 'Fill this or else} }, { FieldValidator.minLength: {'length': 5, 'message': 'Too short'} },

Inheritance
Available extensions

Values

alpha → const FieldValidator
alphanumeric → const FieldValidator
creditCard → const FieldValidator
custom → const FieldValidator
date → const FieldValidator
dateRange → const FieldValidator
dateBefore → const FieldValidator
dateAfter → const FieldValidator
divisibleBy → const FieldValidator
email → const FieldValidator
emailOrUrl → const FieldValidator
emailOrPhone → const FieldValidator
fixedLength → const FieldValidator
float → const FieldValidator
hex → const FieldValidator
integer → const FieldValidator
lowerCase → const FieldValidator
match → const FieldValidator
min → const FieldValidator
minLength → const FieldValidator
max → const FieldValidator
maxLength → const FieldValidator
name → const FieldValidator
notNull → const FieldValidator
nullValue → const FieldValidator
numeric → const FieldValidator
phone → const FieldValidator
range → const FieldValidator
required → const FieldValidator
simpleURL → const FieldValidator
strLength → const FieldValidator
upperCase → const FieldValidator
url → const FieldValidator

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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

Operators

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

Constants

values → const List<FieldValidator>
A constant List of the values in this enum, in order of their declaration.