addFromBase64Data method
Transform the base64 encoded image into an Image and adds it into the cache.
Implementation
Future<void> addFromBase64Data(String name, String base64Data) async {
_assets[name]?.dispose();
final image = await _fetchFromBase64(base64Data);
_assets[name] = _ImageAsset.fromImage(image);
}