lottieWidget property

Widget get lottieWidget

Implementation

Widget get lottieWidget {
  return LottieBuilder(
    lottie: _getLottieFromSource(),
    controller: lottieConfig.controller,
    frameRate: lottieConfig.frameRate,
    animate: lottieConfig.animate,
    reverse: lottieConfig.reverse,
    repeat: lottieConfig.repeat,
    delegates: lottieConfig.delegates,
    options: lottieConfig.options,
    onLoaded: (composition) {
      onSplashDuration?.call(composition.duration);
      lottieConfig.onLoaded?.call(composition);
    },
    errorBuilder: lottieConfig.errorBuilder,
    width: lottieConfig.width,
    height: lottieConfig.height,
    fit: lottieConfig.overrideBoxFit ? BoxFit.fill : lottieConfig.fit,
    alignment: lottieConfig.alignment,
    addRepaintBoundary: lottieConfig.addRepaintBoundary,
    filterQuality: lottieConfig.filterQuality,
    onWarning: lottieConfig.onWarning,
    renderCache: lottieConfig.renderCache,
  );
}