addFromBase64Data method

Future<void> addFromBase64Data(
  1. String name,
  2. String base64Data
)

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