file static method
LottieBuilder
file(
- Object file, {
- Animation<
double> ? controller, - FrameRate? frameRate,
- bool? animate,
- bool? repeat,
- bool? reverse,
- LottieDelegates? delegates,
- LottieOptions? options,
- LottieImageProviderFactory? imageProviderFactory,
- void onLoaded()?,
- Key? key,
- LottieFrameBuilder? frameBuilder,
- ImageErrorWidgetBuilder? errorBuilder,
- double? width,
- double? height,
- BoxFit? fit,
- AlignmentGeometry? alignment,
- bool? addRepaintBoundary,
- FilterQuality? filterQuality,
- WarningCallback? onWarning,
- LottieDecoder? decoder,
- RenderCache? renderCache,
- bool? backgroundLoading,
Creates a widget that displays an LottieComposition obtained from a File.
Implementation
static LottieBuilder file(
Object file, {
Animation<double>? controller,
FrameRate? frameRate,
bool? animate,
bool? repeat,
bool? reverse,
LottieDelegates? delegates,
LottieOptions? options,
LottieImageProviderFactory? imageProviderFactory,
void Function(LottieComposition)? onLoaded,
Key? key,
LottieFrameBuilder? frameBuilder,
ImageErrorWidgetBuilder? errorBuilder,
double? width,
double? height,
BoxFit? fit,
AlignmentGeometry? alignment,
bool? addRepaintBoundary,
FilterQuality? filterQuality,
WarningCallback? onWarning,
LottieDecoder? decoder,
RenderCache? renderCache,
bool? backgroundLoading,
}) =>
LottieBuilder.file(
file,
controller: controller,
frameRate: frameRate,
animate: animate,
repeat: repeat,
reverse: reverse,
delegates: delegates,
options: options,
imageProviderFactory: imageProviderFactory,
onLoaded: onLoaded,
key: key,
frameBuilder: frameBuilder,
errorBuilder: errorBuilder,
width: width,
height: height,
fit: fit,
alignment: alignment,
addRepaintBoundary: addRepaintBoundary,
filterQuality: filterQuality,
onWarning: onWarning,
decoder: decoder,
renderCache: renderCache,
backgroundLoading: backgroundLoading,
);