On this page
Base64Codec class
A base64 encoder and decoder.
A Base64Codec allows base64 encoding bytes into ASCII strings and decoding valid encodings back to bytes.
This implementation only handles the simplest RFC 4648 base64 and base64url encodings. It does not allow invalid characters when decoding and it requires, and generates, padding so that the input is always a multiple of four characters.
Constructors
- Base64Codec() 
    const
 - Base64Codec.urlSafe() 
    const
 
Properties
- decoder → Base64Decoder
    read-only, override
 - 
    Returns the decoder of 
this, converting fromTtoS. - encoder → Base64Encoder
    read-only, override
 - 
    Returns the encoder from 
StoT. - hashCode → int
    read-only, inherited
 - The hash code for this object.
 - inverted → Codec<
String, List< int>> read-only, inherited - 
    Inverts 
this. - runtimeType → Type
    read-only, inherited
 - A representation of the runtime type of the object.
 
Methods
- decode(
String encoded) → Uint8List override - 
    Decodes 
encoded. - encode(
List< int> input) → String inherited - 
    Encodes 
input. - fuse<
R>( Codec< String, R> other) → Codec< List< int>, R> inherited - 
    Fuses 
thiswithother. - normalize(
String source, [int start = 0, int? end]) → String  - 
    Validates and normalizes the base64 encoded data in 
source. - noSuchMethod(
Invocation invocation) → dynamic inherited - Invoked when a non-existent method or property is accessed.
 - toString(
) → String inherited - A string representation of this object.
 
Operators
- operator ==(
Object other) → bool inherited - The equality operator.
 
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
 https://api.dart.dev/stable/2.18.5/dart-convert/Base64Codec-class.html