Lottie constructor
const
Lottie({
- Key? key,
- required LottieComposition? composition,
- Animation<
double> ? controller, - double? width,
- double? height,
- AlignmentGeometry? alignment,
- BoxFit? fit,
- bool? animate,
- FrameRate? frameRate,
- bool? repeat,
- bool? reverse,
- LottieDelegates? delegates,
- LottieOptions? options,
- bool? addRepaintBoundary,
- FilterQuality? filterQuality,
Implementation
const Lottie({
super.key,
required this.composition,
this.controller,
this.width,
this.height,
this.alignment,
this.fit,
bool? animate,
this.frameRate,
bool? repeat,
bool? reverse,
this.delegates,
this.options,
bool? addRepaintBoundary,
this.filterQuality,
}) : animate = animate ?? true,
reverse = reverse ?? false,
repeat = repeat ?? true,
addRepaintBoundary = addRepaintBoundary ?? true;