codecName property
String
get
codecName
Returns the string name of the codec (e.g., "dag-pb", "raw").
This is derived from the integer codec value using a lookup table. If the codec code is unknown, it returns a string like "unknown_codec_0x...".
Implementation
String get codecName {
final name = codecCodeToName[codec];
if (name == null) {
// This should ideally not happen if codec was validated at construction
// or came from a known source.
return 'unknown_codec_0x${codec.toRadixString(16)}';
}
return name;
}