isValidGSTNo function
Implementation
bool isValidGSTNo(String ? input) {
try {
return RegExp(r'^[0-9]{2}[A-Z]{5}[0-9]{4}[A-Z]{1}[1-9A-Z]{1}Z[0-9A-Z]{1}$').hasMatch(input!);
} catch (e) {
if (kDebugMode) {
print(e);
}
return false;
}
}