loadFlare method
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;
}