onLoaded method
Implementation
Future<CacheAsset> onLoaded() async {
if (isAvailable) {
return this;
}
Completer<CacheAsset> completer = Completer<CacheAsset>();
_callbacks.add(completer);
return completer.future;
}
Future<CacheAsset> onLoaded() async {
if (isAvailable) {
return this;
}
Completer<CacheAsset> completer = Completer<CacheAsset>();
_callbacks.add(completer);
return completer.future;
}