packedBytes static method
Bytes from devDir (debug) or a pack; null if path is neither, meaning
it should be loaded from the Flutter bundle as normal.
Implementation
static Future<Uint8List?> packedBytes(String path) async {
final dev = _devFile(path);
if (dev != null) return dev.readAsBytes();
final loc = _find(path);
if (loc == null) return null;
final pack = _packs[loc.pack];
final stored = decryptEntry(pack.bytes, pack.dataStart, loc.entry, _keys!);
if (!loc.entry.compressed) return stored;
return Uint8List.fromList(ZLibDecoder().decodeBytes(stored));
//return Uint8List.fromList(zlib.decode(stored));
}