isStrictValid static method

bool isStrictValid(
  1. String value
)

Helper to check if a single string is valid (proxy to main class).

Implementation

static bool isStrictValid(String value) {
  final isValid = ThaiIdCardNumbers().validateFormatted(value);
  if (!isValid) return false;
  // Add strict checks here if desired, e.g. first digit != 9
  // For now, relies on checksum validity.
  return true;
}