Validators class

Built-in validators.

Constructors

Validators()

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Static Methods

custom<T>(bool test(T value), String message) Validator<T>
Custom validator.
email(String message) Validator<String>
Email validator.
max(num maximum, String message) Validator<num>
Maximum value validator.
maxLength(int max, String message) Validator<String>
Maximum length validator.
min(num minimum, String message) Validator<num>
Minimum value validator.
minLength(int min, String message) Validator<String>
Minimum length validator.
pattern(RegExp regex, String message) Validator<String>
Pattern validator.
required<T>(String message) Validator<T>
Required field validator.