description

# Base64Decoder class final

Decoder for base64 encoded data.

This decoder accepts both base64 and base64url ("url-safe") encodings.

The encoding is required to be properly padded.

Throws a FormatException if the input is not valid base64 data.

Example:

    final base64Decoder = base64.decoder;
    const base64Bytes = 'RGFydCBpcyBvcGVuIHNvdXJjZQ==';
    final decodedBytes = base64Decoder.convert(base64Bytes);
    // decodedBytes: [68, 97, 114, 116, 32, 105, 115, 32, 111, 112, 101, 110,
    // 32, 115, 111, 117, 114, 99, 101]

    // Print as string using UTF-8 decoder
    print(utf8.decode(decodedBytes)); // Dart is open source

Inheritance
  - Object
  - Converter<String, List<int>>
  - Base64Decoder

## Constructors

Base64Decoder()
  const

## Properties

hashCode → int
  The hash code for this object.
  no setterinherited
runtimeType → Type
  A representation of the runtime type of the object.
  no setterinherited

## Methods

bind(Stream<String> stream) → Stream<List<int>>
  Transforms the provided `stream`.
  inherited
cast<RS, RT>() → Converter<RS, RT>
  Provides a `Converter<RS, RT>` view of this stream transformer.
  inherited
convert(String input, [int start = 0, int? end]) → Uint8List
  Decodes the characters of `input` from `start` to `end` as base64.
  override
fuse<TT>(Converter<List<int>, TT> other) → Converter<String, TT>
  Fuses `this` with `other`.
  inherited
noSuchMethod(Invocation invocation) → dynamic
  Invoked when a nonexistent method or property is accessed.
  inherited
startChunkedConversion(Sink<List<int>> sink) → StringConversionSink
  Starts a chunked conversion.
  override
toString() → String
  A string representation of this object.
  inherited

## Operators

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