load method
dynamic
load(])
override
Implementation
@override
load(url, onLoad, [onProgress, onError]) async {
if (path != "" && url is String) {
url = path + url;
}
url = manager.resolveURL(url);
var cached = Cache.get(url);
if (cached != null) {
manager.itemStart(url);
Future.delayed(Duration(milliseconds: 0), () {
onLoad(cached);
manager.itemEnd(url);
});
return cached;
}
final resp = await ImageLoaderLoader.loadImage(url, flipY);
onLoad(resp);
return resp;
}