decodeGZip static method
Implementation
static Future<LottieComposition?> decodeGZip(List<int> bytes) async {
if (bytes[0] == 31 && bytes[1] == 139) {
var decodedBytes = GZipDecoder().decodeBytes(bytes);
return LottieComposition.parseJsonBytes(decodedBytes);
}
return null;
}