encodeWithName static method
Encodes raw bytes using the requested base name.
Falls back to base32 if the name is unknown.
Implementation
static String encodeWithName(String name, Uint8List bytes) {
final base = _baseFromName(name);
return encode(base, bytes);
}