TValidator class

A class to handle various input validation checks for form fields.

Constructors

TValidator.new()

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

validateEmail(String? value) String?
Validates the email input.
validateEmptyText(String? fieldName, String? value) String?
Validates if the given text is empty.
validatePassword(String? value) String?
Validates the password input.
validatePhoneNumber(String? value) String?
Validates the phone number input.
validateUsername(String? username) String?
Validates the username input.