assetAnimated static method

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

Implementation

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