unique static method
Asynchronously compresses a list of unique integers using the most efficient algorithm.
The algorithm automatically selects the best compression method from: delta-encoding with variable-length integers, run-length encoding, chunked encoding, or bitmask encoding.
This method runs the compression in a separate isolate using compute.
Returns a Future<Uint8List>
containing the compressed data.
Implementation
static Future<Uint8List> unique(List<int> list) {
return compute(_shrinkUniqueIsolate, list);
}