W3cubDocs

/Dart 2

decode method

Uint8List decode (String encoded)

Decodes encoded.

The input is decoded as if by decoder.convert.

The returned Uint8List contains exactly the decoded bytes, so the Uint8List.length is precisely the number of decoded bytes. The Uint8List.buffer may be larger than the decoded bytes.

Implementation

Uint8List decode(String encoded) => decoder.convert(encoded);

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/2.0.0/dart-convert/Base64Codec/decode.html