electronicFormatIBAN function
Get IBAN in electronic format (no spaces) IBAN validation is not performed. When non-string value for IBAN is provided, returns null.
// returns `"NL91ABNA0417164300"`
ibantools.electronicFormatIBAN("NL91 ABNA 0417 1643 00");
Implementation
String? electronicFormatIBAN(String? iban) {
if (iban is! String) {
return null;
}
return iban.replaceAll(' ', '').toUpperCase();
}