Validator class
form field validator
Constructors
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
-
email(
String errorMsg, {dynamic optional = false}) → FormFieldValidator< String> - email validation
-
isMatch(
String text, String text2) → bool - isMatch validation
-
isValidDouble(
String text, {bool negative = false}) → bool - isValidDouble validation
-
isValidEmail(
String text) → bool - isValidEmail validation
-
isValidFloat(
String text, {bool negative = false}) → bool - isValidFloat validation
-
isValidNumber(
String text, {bool negative = false}) → bool - isValidNumber validation
-
isValidPassword(
String text) → bool - isValidPassword validation
-
isValidUsername(
String text) → bool - isValidUsername validation
-
isValidUsernameOrEmail(
String text) → bool - isValidUsernameOrEmail validation
-
number(
String errorMsg, {dynamic optional = false, double? min, double? max}) → FormFieldValidator< String> - number validation
-
required(
String errorMsg) → FormFieldValidator< String> - required validation
-
text(
String errorMsg, {dynamic optional = false, int? minLength, int? maxLength}) → FormFieldValidator< String> - text validation