UpiValidator class
Validates UPI payment fields before launching an intent
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
-
bankHandle(
String vpa) → String? - Extracts bank handle from VPA
-
isValidAmount(
double amount) → bool - Validates a payment amount
-
isValidVpa(
String vpa) → bool - Validates a UPI Virtual Payment Address (VPA)
-
phoneToVpa(
String phone, String bankHandle) → String - Converts a 10-digit phone number to a UPI ID