uniqueManual static method

Future<Uint8List> uniqueManual(
  1. UniqueManualArgs args
)

Asynchronously compresses a list of unique integers using a specified compression method.

Important: The automatic unique method is recommended over this manual option in most cases, as it intelligently selects the optimal compression algorithm, which can yield significantly better compression ratios for different data patterns.

This method runs the compression in a separate isolate using compute.

Parameters: args: An instance of UniqueManualArgs containing the list and the method.

Returns a Future<Uint8List> containing the compressed data.

Implementation

static Future<Uint8List> uniqueManual(UniqueManualArgs args) {
  return compute(_shrinkUniqueManualIsolate, args);
}