name static method
- int code
Returns the canonical name for code.
Throws ArgumentError if code is not supported.
Implementation
static String name(int code) {
final entry = _codecs.entries.firstWhere(
(e) => e.value == code,
orElse: () => throw ArgumentError(
'Unsupported multicodec code: 0x${code.toRadixString(16)}',
),
);
return entry.key;
}