Compression class
A class that provides compression and decompression functionality.
Constructors
- Compression.new({int level = 6, int asyncThreshold = 50000})
- Creates a new instance of Compression.
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
-
compressString(
String data) → String - Compresses the given string data.
-
compressStringAsync(
String data) → Future< String> - Compresses the given string data asynchronously.
-
decompressString(
String compressedData) → String - Decompresses the given base64-encoded compressed string.
-
decompressStringAsync(
String compressedData) → Future< String> - Decompresses the given base64-encoded compressed string asynchronously.
-
log2(
double value) → double - Calculates the base-2 logarithm of the given value.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
shouldCompress(
String data) → bool - Determines if compression should be applied to the given data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited