issuerNns property
String
get
issuerNns
Extracts the Issuer's National Numbering System (NNS) from the Primary Account Number (PAN).
The NNS is represented by the first 8 characters of the PAN. It is commonly used to identify the financial institution or issuer of the PAN.
Parameters:
pan
: A string representing the Primary Account Number (PAN).
Returns:
- A string containing the Issuer's NNS if the PAN is not null and has at least 8 characters.
- Returns
null
if the PAN is null or shorter than 8 characters.
Implementation
String get issuerNns {
if (pan.isNotEmpty && pan.length >= 8) {
return pan.substring(0, 8);
}
return '';
}