validateTaxMemoryId static method

bool validateTaxMemoryId(
  1. String? input
)

Checks an Iranian tax memory id format.

Implementation

static bool validateTaxMemoryId(String? input) {
  if (input == null) return false;
  final String code = input.trim().toUpperCase();
  if (code.length != 6) return false;
  return RegExp(r"^[A-Z0-9]{6}$").hasMatch(code);
}