LottieBuilder.asset constructor

LottieBuilder.asset(
  1. String name, {
  2. Animation<double>? controller,
  3. FrameRate? frameRate,
  4. bool? animate,
  5. bool? reverse,
  6. bool? repeat,
  7. LottieDelegates? delegates,
  8. LottieOptions? options,
  9. LottieImageProviderFactory? imageProviderFactory,
  10. void onLoaded(
    1. LottieComposition
    )?,
  11. Key? key,
  12. AssetBundle? bundle,
  13. LottieFrameBuilder? frameBuilder,
  14. ImageErrorWidgetBuilder? errorBuilder,
  15. double? width,
  16. double? height,
  17. BoxFit? fit,
  18. AlignmentGeometry? alignment,
  19. String? package,
  20. bool? addRepaintBoundary,
  21. FilterQuality? filterQuality,
  22. WarningCallback? onWarning,
  23. LottieDecoder? decoder,
  24. RenderCache? renderCache,
  25. bool? backgroundLoading,
})

Creates a widget that displays an LottieComposition obtained from an AssetBundle.

Implementation

LottieBuilder.asset(
  String name, {
  this.controller,
  this.frameRate,
  this.animate,
  this.reverse,
  this.repeat,
  this.delegates,
  this.options,
  LottieImageProviderFactory? imageProviderFactory,
  this.onLoaded,
  super.key,
  AssetBundle? bundle,
  this.frameBuilder,
  this.errorBuilder,
  this.width,
  this.height,
  this.fit,
  this.alignment,
  String? package,
  this.addRepaintBoundary,
  this.filterQuality,
  this.onWarning,
  LottieDecoder? decoder,
  this.renderCache,
  bool? backgroundLoading,
}) : lottie = AssetLottie(name,
          bundle: bundle,
          package: package,
          imageProviderFactory: imageProviderFactory,
          decoder: decoder,
          backgroundLoading: backgroundLoading);