decodeGzipBase64 function

Future<Uint8List> decodeGzipBase64(
  1. String encoded
)

Implementation

Future<Uint8List> decodeGzipBase64(String encoded) async {
  final gzipped = base64.decode(encoded);
  final raw = gzip.decode(gzipped);
  return raw is Uint8List ? raw : Uint8List.fromList(raw);
}