LottieBuilder.asset constructor
LottieBuilder.asset(
- String name, {
- Animation<
double> ? controller, - FrameRate? frameRate,
- bool? animate,
- bool? reverse,
- bool? repeat,
- LottieDelegates? delegates,
- LottieOptions? options,
- LottieImageProviderFactory? imageProviderFactory,
- void onLoaded()?,
- Key? key,
- AssetBundle? bundle,
- LottieFrameBuilder? frameBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- double? width,
- double? height,
- BoxFit? fit,
- AlignmentGeometry? alignment,
- String? package,
- bool? addRepaintBoundary,
- FilterQuality? filterQuality,
- WarningCallback? onWarning,
- LottieDecoder? decoder,
- RenderCache? renderCache,
- 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);