Future<void> set(Uint8List image) async { if (kCanRunProcess) { final file = _getAssetFile(); await file.writeAsBytes(image); return; } throw Exception('Cannot cache image on the web'); }