decode method

  1. @override
Bech32 decode(
  1. String data, {
  2. dynamic maxLength = Bech32Validations.maxInputLength,
  3. String encoding = 'bech32',
})
override

Decodes encoded data.

The input is decoded as if by decoder.convert.

Implementation

@override
Bech32 decode(String data,
    {maxLength = Bech32Validations.maxInputLength,
    String encoding = 'bech32'}) {
  return Bech32Decoder()
      .convert(data, maxLength: maxLength, encoding: encoding);
}