pan static method
Implementation
static String? pan(String? value) {
if (value == null || value.isEmpty) return null;
final regex = RegExp(r'^[A-Z]{5}[0-9]{4}[A-Z]{1}$');
if (!regex.hasMatch(value)) {
return "Invalid PAN Number";
}
return null;
}