UValidators class abstract

Constructors

UValidators()

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

alphanumeric({String? requiredMessage, String? invalidMessage, bool isRequired = true}) → FormFieldValidator<String>
combineValidators<T>(List<FormFieldValidator<T>> validators) → FormFieldValidator<T>
complexPassword() → FormFieldValidator<String>
email({String? requiredMessage, String? invalidMessage, bool isRequired = true}) → FormFieldValidator<String>
exactLength({required int length, required String message}) → FormFieldValidator<String>
iranianNationalCode({String? requiredMessage, String? invalidMessage, bool isRequired = true}) → FormFieldValidator<String>
match({required String otherValue, required String mismatchMessage}) → FormFieldValidator<String>
maxLength({required int maxLength, required String message}) → FormFieldValidator<String>
minLength({required int minLength, required String message}) → FormFieldValidator<String>
number({String? requiredMessage, String? invalidMessage, int? minLength, int? maxLength, bool isRequired = true}) → FormFieldValidator<String>
numberRange({required double min, required double max, required String rangeMessage, required String invalidNumberMessage, bool isRequired = true}) → FormFieldValidator<String>
password({required String weakMessage, String? requiredMessage, bool isRequired = true}) → FormFieldValidator<String>
pattern({required RegExp pattern, required String message, bool isRequired = true}) → FormFieldValidator<String>
phone({String? requiredMessage, String? invalidMessage, bool isRequired = true}) → FormFieldValidator<String>
required<T>({String? message}) → FormFieldValidator<T>
url({String? requiredMessage, String? invalidMessage, bool isRequired = true}) → FormFieldValidator<String>
validateForm({required GlobalKey<FormState> key, required VoidCallback action}) → void