loadFlare method

Future<FlutterActor?> loadFlare(
  1. AssetProvider assetProvider
)

Load a flare file from cache

Implementation

Future<FlutterActor?> loadFlare(AssetProvider assetProvider) async {
  FlareCacheAsset asset = await cachedActor(assetProvider);

  if (!attached) {
    return null;
  }
  _assets.add(asset);
  asset.ref();
  return asset.actor;
}