isValidLicenseNo function
Implementation
bool isValidLicenseNo(String ? input) {
try {
return RegExp(r'^(([A-Z]{2}[0-9]{2})( )|([A-Z]{2}-[0-9]{2}))((19|20)[0-9][0-9])[0-9]{7}$').hasMatch(input!);
} catch (e) {
if (kDebugMode) {
print(e);
}
return false;
}
}