bool isValidPan(String ? input) { try { return RegExp("[A-Z]{5}[0-9]{4}[A-Z]{1}").hasMatch(input!); } catch (e) { if (kDebugMode) { print(e); } return false; } }