FormeValidates class

validators for Forme

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

all<T>(List<FormeValidator<T>> validators, {String errorText = ''}) FormeValidator<T>
when valid
any<T>(List<FormeValidator<T>> validators, {String errorText = ''}) FormeValidator<T>
when valid
email<T>({String errorText = ''}) FormeValidator<T>
when valid
equals<T>(T value, {String errorText = ''}) FormeValidator<T>
when valid:
max<T>(double max, {String errorText = ''}) FormeValidator<T>
when valid
min<T>(double min, {String errorText = ''}) FormeValidator<T>
when valid
negative<T>({String errorText = ''}) FormeValidator<T>
when valid
negativeOrZero<T>({String errorText = ''}) FormeValidator<T>
when valid
notBlank<T>({String errorText = ''}) FormeValidator<T>
when valid
notEmpty<T>({String errorText = ''}) FormeValidator<T>
when valid
notNull<T>({String errorText = ''}) FormeValidator<T>
when valid
pattern<T>(String pattern, {String errorText = ''}) FormeValidator<T>
when valid
positive<T>({String errorText = ''}) FormeValidator<T>
when valid
positiveOrZero<T>({String errorText = ''}) FormeValidator<T>
when valid
range<T>(double min, double max, {String errorText = ''}) FormeValidator<T>
when valid:
size<T>({String errorText = '', int? min, int? max}) FormeValidator<T>
when valid
url<T>({String errorText = '', String? schema, String? host, int? port}) FormeValidator<T>
when valid

Constants

emailPattern → const String