fromAsset static method

Future<PrismLottie> fromAsset(
  1. String path
)

Loads a Lottie animation from an asset path.

Implementation

static Future<PrismLottie> fromAsset(String path) async {
  final json = await rootBundle.loadString(path);
  return PrismLottie.fromJson(json);
}