FormValidator class

Constructors

FormValidator()

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

isValidAlphanumericOTP(String? otp, {int length = 6}) String?
Validates if the input is a valid alphanumeric OTP of specified length
isValidEmail(String? email) String?
isValidFullName(String? fullName) String?
isValidName(String? fullName) String?
isValidOTP(String? otp, {int length = 6}) String?
Validates if the input is a valid numeric OTP of specified length
isValidPassword(String? password) String?
isValidPhone(String? phoneNo) String?
isValidPIN(String? pin, {int length = 4}) String?
Validates PIN (typically 4-6 digits)
isValidUsername(String? username) String?