getCodec method
Get a codec from the registry
Implementation
Codec? getCodec(String codecName) {
if (codecs[codecName] == null) {
final simpleCodec = getSimpleCodecs(codecName);
if (simpleCodec != null) {
codecs[codecName] = simpleCodec;
}
}
return codecs[codecName];
}