Multibase enum

List of types currently supported in the multibase spec.

Not all base types are supported by this library.

Inheritance

Constructors

Multibase({required String code, required String symbols, String padding = '', String translateFrom = '', String translateTo = ''})
Initialize a new multibase variant
const

Values

base16 → const Multibase

hexadecimal

const Multibase(code: 'f', symbols: _base16Symbols, translateFrom: 'ABCDEF', translateTo: 'abcdef')
base16upper → const Multibase

hexadecimal

const Multibase(code: 'F', symbols: _base16UpperSymbols, translateFrom: 'abcdef', translateTo: 'ABCDEF')
base32 → const Multibase

rfc4648 case-insensitive - no padding

const Multibase(code: 'b', symbols: _base32Symbols, translateFrom: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', translateTo: 'abcdefghijklmnopqrstuvwxyz')
base32upper → const Multibase

rfc4648 case-insensitive - no padding

const Multibase(code: 'B', symbols: _base32UpperSymbols, translateFrom: 'abcdefghijklmnopqrstuvwxyz', translateTo: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ')
base58btc → const Multibase

base58 bitcoin

const Multibase(code: 'z', symbols: _base58Symbols)
base64 → const Multibase

rfc4648 no padding

const Multibase(code: 'm', symbols: _base64Symbols)
base64url → const Multibase

rfc4648 no padding

const Multibase(code: 'u', symbols: _base64UrlSymbols)
base64urlpad → const Multibase

rfc4648 with padding

const Multibase(code: 'U', symbols: _base64UrlSymbols, padding: '=')

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<Multibase>
A constant List of the values in this enum, in order of their declaration.