GSTValidator class

Validator for Indian GST (Goods and Services Tax) numbers.

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

calculateChecksum(String gstPrefix) String?
Calculates and returns the check character for a 14-character GST prefix.
extractPAN(String? gst) String?
Gets the PAN number embedded in the GST number.
getGSTState(String? gst) String?
Gets the state name from a GST number.
getGSTStateCode(String? gst) int?
Gets the state code from a GST number.
isGST(String? gst, {bool verifyChecksum = true}) bool
Validates if a string is a valid GST number with checksum verification.
validateGST(String? gst, {bool verifyChecksum = true}) String?
Validates GST and returns error message if invalid.