replaceCharacterWithCode function

String replaceCharacterWithCode(
  1. String str
)

Iban contain characters and should be converted to integer by 55 subtracted from there ascii value

@ignore

Implementation

String replaceCharacterWithCode(String str) {
  // It is slower but a lot more readable
  // https://jsbench.me/ttkzgsekae/1
  return str.split('').map((String c) {
    final int code = c.codeUnitAt(0);

    return code >= 65 ? (code - 55).toString() : c;
  }).join('');
}