Lottie constructor

const Lottie({
  1. Key? key,
  2. required LottieComposition? composition,
  3. Animation<double>? controller,
  4. double? width,
  5. double? height,
  6. AlignmentGeometry? alignment,
  7. BoxFit? fit,
  8. bool? animate,
  9. FrameRate? frameRate,
  10. bool? repeat,
  11. bool? reverse,
  12. LottieDelegates? delegates,
  13. LottieOptions? options,
  14. bool? addRepaintBoundary,
  15. FilterQuality? filterQuality,
  16. RenderCache? renderCache,
})

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,
  this.renderCache,
})  : animate = animate ?? true,
      reverse = reverse ?? false,
      repeat = repeat ?? true,
      addRepaintBoundary = addRepaintBoundary ?? true;