content property Null safety
Get the decompressed content from the file. The file isn't decompressed until it is requested.
Implementation
List<int> get content {
if (_content == null) {
if (_isEncrypted) {
if (_rawContent.length <= 0) {
_content = _rawContent.toUint8List();
_isEncrypted = false;
} else {
_rawContent = _decodeRawContent(_rawContent);
_isEncrypted = false;
}
}
if (compressionMethod == DEFLATE) {
_content = Inflate.buffer(_rawContent, uncompressedSize).getBytes();
compressionMethod = STORE;
} else {
_content = _rawContent.toUint8List();
}
}
return _content!;
}