asset static method

LottieBuilder asset(
  1. String name, {
  2. Animation<double>? controller,
  3. bool? animate,
  4. FrameRate? frameRate,
  5. bool? repeat,
  6. bool? reverse,
  7. LottieDelegates? delegates,
  8. LottieOptions? options,
  9. void onLoaded(
    1. LottieComposition
    )?,
  10. LottieImageProviderFactory? imageProviderFactory,
  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,
})

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

Implementation

static LottieBuilder asset(
  String name, {
  Animation<double>? controller,
  bool? animate,
  FrameRate? frameRate,
  bool? repeat,
  bool? reverse,
  LottieDelegates? delegates,
  LottieOptions? options,
  void Function(LottieComposition)? onLoaded,
  LottieImageProviderFactory? imageProviderFactory,
  Key? key,
  AssetBundle? bundle,
  LottieFrameBuilder? frameBuilder,
  ImageErrorWidgetBuilder? errorBuilder,
  double? width,
  double? height,
  BoxFit? fit,
  AlignmentGeometry? alignment,
  String? package,
  bool? addRepaintBoundary,
  FilterQuality? filterQuality,
  WarningCallback? onWarning,
}) =>
    LottieBuilder.asset(
      name,
      controller: controller,
      frameRate: frameRate,
      animate: animate,
      repeat: repeat,
      reverse: reverse,
      delegates: delegates,
      options: options,
      imageProviderFactory: imageProviderFactory,
      onLoaded: onLoaded,
      key: key,
      bundle: bundle,
      frameBuilder: frameBuilder,
      errorBuilder: errorBuilder,
      width: width,
      height: height,
      fit: fit,
      alignment: alignment,
      package: package,
      addRepaintBoundary: addRepaintBoundary,
      filterQuality: filterQuality,
      onWarning: onWarning,
    );