FieldBlocValidators class

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

confirmPassword(TextFieldBloc passwordTextFieldBloc, {String? errorMessage}) Validator<String?>
Check if the value of the current TextFieldBloc is equals to passwordTextFieldBloc.value.
date(String? string, {String? errorMessage}) String?
Date validator (YYYY-MM-DD).
email(String? string, {String? errorMessage}) String?
Check if the string is an email if string is not null and not empty.
maxLength(int max, {String? errorMessage}) Validator<String?>
Check if the string has max max chars if string is not null and not empty.
minLength(int min, {String? errorMessage}) Validator<String?>
Check if the string has min min chars if string is not null and not empty.
number(String? string, {String? errorMessage}) String?
Number validator.
passwordMin6Chars(String? string, {String? errorMessage}) String?
Check if the string has min 6 chars if string is not null and not empty.
phone(String? string, {String? errorMessage}) String?
Phone number validator (basic).
regex(String pattern, {String? errorMessage, bool caseSensitive = true}) Validator<String?>
Check if the string has pattern pattern chars if string is not null and not empty.
required(dynamic value, {String? errorMessage}) String?
Check if the value is is not null, not empty or false.
url(String? string, {String? errorMessage}) String?
URL validator.