lottieImage static method

Widget lottieImage({
  1. required String assetName,
  2. double? width,
  3. double? height,
  4. BoxFit? fit,
  5. AnimationController? controller,
  6. bool? repeat,
  7. bool? reverse,
})

Implementation

static Widget lottieImage(
    {required String assetName,
    double? width,
    double? height,
    BoxFit? fit,
    AnimationController? controller,
    bool? repeat,
    bool? reverse}) {
  return Lottie.asset(assetName,
      controller: controller, repeat: repeat, reverse: reverse, width: width, height: height, fit: fit);
}