OtpValidator class
Utility class for validating OTP input
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
-
createValidator(
{required OtpInputType inputType, required int fieldCount, String? validationRegex, String? customValidator(String?)?}) → String? Function(String?)? - Creates a validator function based on validation parameters
-
isValidOtp(
String text, OtpInputType inputType, int fieldCount) → bool - Validates if the given text is a valid OTP based on input type