isValidVoterIDNo function

bool isValidVoterIDNo(
  1. String? input
)

Implementation

bool isValidVoterIDNo(String ? input) {
  try {
    return RegExp(r'^[A-Z]{3}[0-9]{7}$').hasMatch(input!);
  } catch (e) {
    if (kDebugMode) {
      print(e);
    }
    return false;
  }
}