loadImageUi method
\see Loader.loadImageUi
Implementation
Future<ui.Image?> loadImageUi(
String path, {
List<Loader>? loaders,
}) async {
if (loaders == null && useMemoryCache) {
log('loadImageUi($path) look at into the memory cache...');
final r = await memoryCache.getImageUi(path);
if (r != null) {
log('loadImageUi($path) return from memory cache');
return r;
}
}
for (final loader in loaders ?? this.loaders) {
log('loadImageUi($path) with $loader...');
final r = await loader.loadImageUi(path);
if (r != null) {
log('loadImageUi($path) success with $loader: `$r`.');
await memoryCache.addImageUi(path, r);
return r;
}
}
return null;
}