LottieConfig constructor

const LottieConfig({
  1. void onLoaded(
    1. LottieComposition
    )?,
  2. Animation<double>? controller,
  3. FrameRate? frameRate,
  4. bool? animate,
  5. bool? repeat = false,
  6. bool? reverse,
  7. LottieDelegates? delegates,
  8. LottieOptions? options,
  9. double? width,
  10. double? height,
  11. BoxFit? fit,
  12. AlignmentGeometry? alignment,
  13. bool? addRepaintBoundary,
  14. FilterQuality? filterQuality,
  15. WarningCallback? onWarning,
  16. ImageErrorWidgetBuilder? errorBuilder,
  17. RenderCache? renderCache,
  18. bool overrideBoxFit = true,
  19. double aspectRatio = 9 / 16,
  20. VisibilityEnum visibilityEnum = VisibilityEnum.useFullScreen,
})

Implementation

const LottieConfig({
  this.onLoaded,
  this.controller,
  this.frameRate,
  this.animate,
  this.repeat = false,
  this.reverse,
  this.delegates,
  this.options,
  this.width,
  this.height,
  this.fit,
  this.alignment,
  this.addRepaintBoundary,
  this.filterQuality,
  this.onWarning,
  this.errorBuilder,
  this.renderCache,
  this.overrideBoxFit = true,
  this.aspectRatio = 9 / 16,
  this.visibilityEnum = VisibilityEnum.useFullScreen,
});