addImages method

Future<void> addImages(
  1. Map<String, Uint8List> images
)

Add multiple images to the map where the key is the image ID and the value is the image bytes.

Implementation

Future<void> addImages(Map<String, Uint8List> images) =>
    Future.wait(images.entries.map((e) => addImage(e.key, e.value)));