institutionCode property
String?
get
institutionCode
Retrieves the National Institution Code derived from the Issuer's NNS.
The National Institution Code is represented by the 5th to 8th digits of the NNS. If the NNS
is unavailable, a default value of '0000'
is returned.
Returns:
- The institution code as a string, or
'0000'
if the NNS is not available.
Implementation
String? get institutionCode {
final nns = issuerNns;
return (nns.isNotEmpty && nns.length >= 8) ? nns.substring(4, 8) : '0000';
}