checkPanDigitVerbose property

int? get checkPanDigitVerbose

Retrieves the check digit from the PAN with verbose logging.

The check digit is the last digit of the PAN, which is used for validation purposes.

Returns:

  • The check digit as an integer, or null if the PAN is empty or null.

Implementation

int? get checkPanDigitVerbose {
  if (pan.isNotEmpty) {
    if (!isPanValid()) {
      return null;
    }
    return pan.calculateCheckDigit(verbose: true);
  }
  return null;
}