decodeGZip static method

Future<LottieComposition?> decodeGZip(
  1. List<int> bytes
)

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;
}