Multihash.fromBase64Url constructor
Multihash.fromBase64Url(
- String hash
Implementation
factory Multihash.fromBase64Url(String hash) {
while (hash.length % 4 != 0) {
hash += '=';
}
final bytes = base64Url.decode(hash);
return Multihash(bytes);
}