JsonLottie constructor

JsonLottie({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. bool? addRepaintBounary,
  4. Alignment? alignment,
  5. bool? animate,
  6. String? asset,
  7. BoxFit? fit,
  8. double? height,
  9. String? lottie,
  10. LottieOptions? options,
  11. String? package,
  12. bool? repeat,
  13. bool? reverse,
  14. String? url,
  15. double? width,
})

Implementation

JsonLottie({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.addRepaintBounary,
  this.alignment,
  this.animate,
  this.asset,
  this.fit,
  this.height,
  this.lottie,
  this.options,
  this.package,
  this.repeat,
  this.reverse,
  this.url,
  this.width,
}) : super(
        jsonWidgetArgs: LottieBuilderModel.fromDynamic(
          {
            'addRepaintBounary': addRepaintBounary,
            'alignment': alignment,
            'animate': animate,
            'asset': asset,
            'fit': fit,
            'height': height,
            'lottie': lottie,
            'options': options,
            'package': package,
            'repeat': repeat,
            'reverse': reverse,
            'url': url,
            'width': width,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => LottieBuilder(
          args: LottieBuilderModel.fromDynamic(
            {
              'addRepaintBounary': addRepaintBounary,
              'alignment': alignment,
              'animate': animate,
              'asset': asset,
              'fit': fit,
              'height': height,
              'lottie': lottie,
              'options': options,
              'package': package,
              'repeat': repeat,
              'reverse': reverse,
              'url': url,
              'width': width,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: LottieBuilder.kType,
      );