Base64Utils class

Utility class for Base64 encoding/decoding and text compression.

Provides methods to compress and decompress text using gzip and Base64 encoding, which is useful for reducing payload sizes when transmitting or storing text data.

Example usage:

final compressed = Base64Utils.compressText('Hello, World!');
final decompressed = Base64Utils.decompressText(compressed!);
print(decompressed); // 'Hello, World!'

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

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

Static Methods

compressText(String? value) String?
Compresses a string using gzip and encodes it as Base64.
decompressText(String? compressedBase64) String?
Decompresses a Base64-encoded gzipped string back to its original form.