decompressed method

Uint8List decompressed()

Returns the uncompressed data of the ICC Profile, decompressing the stored data as necessary.

Implementation

Uint8List decompressed() {
  if (compression == IccProfileCompression.none) {
    return data;
  }
  data = castToUint8List(const ZLibDecoder().decodeBytes(data));
  compression = IccProfileCompression.none;
  return data;
}