readDirImage method

Future<Map<String, AKTinyImage>> readDirImage()

Implementation

Future<Map<String, AKTinyImage>> readDirImage() async {
  if (_readDirImage.isNotEmpty) {
    return _readDirImage;
  }
  for (var path in imageDirPaths) {
    var images = await getImages(path);
    for (var image in images) {
      var akTinyImage = AKTinyImage(file: image);
      _readDirImage[akTinyImage.uiqId!] = akTinyImage;
    }
  }
  return _readDirImage;
}