GZipCodec().decode does not work in flutter for the target web. Is there a workaround? The following snippet works for the target 'android' and it works for the target 'windows'.
List<int> gzipped = providerFDC.fdcdata_gzipped.codeUnits;
final ungzipped0 = GZipCodec().decode(gzipped);
String ungzipped = String.fromCharCodes(ungzipped0);
List<dynamic> food = jsonDecode(ungzipped);
foodList = food.map((e) => FoodItem.fromJson(e)).toList();
I am working on an app that uses Food Data Central database. A preliminary version can be already used at http://buf1612huds2.w73.eu/foodd456/