shrink method
Compresses this list of unique integers using the most efficient algorithm.
This method automatically tries multiple compression algorithms and selects the one that produces the smallest result for the given input. It works best when the list contains unique integers (no duplicates).
For decompression, use Uint8List.restoreUnique
. or Restore.unique.
Returns a Uint8List containing the compressed integer list.
Implementation
Uint8List shrink() => utils.shrinkUnique(this);