getDecodeMap method Null safety

Map<String, int> getDecodeMap(
  1. Encoding encoding
)

Implementation

static Map<String, int> getDecodeMap(Encoding encoding) {
  var map = _decodeMap[encoding];
  if (map != null) {
    return map;
  } else {
    var chars = _encodeMap[encoding]!;
    // ignore: omit_local_variable_types
    Map<String, int> map = {};
    for (var i = 0; i < 32; i++) {
      map[chars[i]] = i;
    }
    _decodeMap[encoding] = map;
    return map;
  }
}