onLoaded method

Future<CacheAsset> onLoaded()

Implementation

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