Base64Codec class

Base64 codec for encoding and decoding text using Base64 algorithm.

This codec provides Base64 encoding and decoding functionality using Dart's built-in base64 implementation. It handles UTF-8 encoding/decoding automatically.

Example:

final codec = Base64Codec();
final encoded = codec.encode('Hello, World!'); // SGVsbG8sIFdvcmxkIQ==
final decoded = codec.decode(encoded); // Hello, World!
Implemented types

Constructors

Base64Codec.new()
Creates a new Base64 codec instance.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
Returns the name/identifier of this codec.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String input) String
Decodes the input string using the codec's specific algorithm.
override
encode(String input) String
Encodes the input string using the codec's specific algorithm.
override
isValidInput(String input) bool
Optional method to validate if input can be processed by this codec.
override
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