asset static method
LottieBuilder
asset(
- String name, {
- Animation<
double> ? controller, - bool? animate,
- FrameRate? frameRate,
- bool? repeat,
- bool? reverse,
- LottieDelegates? delegates,
- LottieOptions? options,
- void 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,
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,
);