Validators 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
Static Methods
-
age(String? value, {int minAge = 0, int maxAge = 150})
→ String?
-
-
composite(String? value, List<String? Function(String?)> validators)
→ String?
-
-
confirmPassword(String? value, String? password)
→ String?
-
-
creditCard(String? value)
→ String?
-
-
date(String? value, {DateTime? minDate, DateTime? maxDate})
→ String?
-
-
email(String? value)
→ String?
-
-
name(String? value, {int minLength = 2, int maxLength = 50})
→ String?
-
-
number(String? value, {double? min, double? max, bool allowDecimals = true, int? decimalPlaces})
→ String?
-
-
password(String? value, {int minLength = 8, int maxLength = 128, bool requireUppercase = true, bool requireLowercase = true, bool requireNumbers = true, bool requireSpecialChars = true})
→ String?
-
-
pattern(String? value, RegExp pattern, String errorMessage)
→ String?
-
-
phone(String? value, {String? countryCode})
→ String?
-
-
postalCode(String? value, {String? countryCode})
→ String?
-
-
required(String? value, [String? fieldName])
→ String?
-
-
textLength(String? value, {int? minLength, int? maxLength, bool required = true})
→ String?
-
-
url(String? value, {bool requireHttps = false})
→ String?
-
-
username(String? value, {int minLength = 3, int maxLength = 20})
→ String?
-