JsonAnimatedSize constructor

JsonAnimatedSize({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. AlignmentGeometry alignment = Alignment.center,
  4. Clip clipBehavior = Clip.hardEdge,
  5. Curve curve = Curves.linear,
  6. required Duration duration,
  7. void onEnd()?,
  8. Duration? reverseDuration,
  9. JsonWidgetData? child,
})

Implementation

JsonAnimatedSize({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.alignment = Alignment.center,
  this.clipBehavior = Clip.hardEdge,
  this.curve = Curves.linear,
  required this.duration,
  this.onEnd,
  this.reverseDuration,
  this.child,
}) : super(
        jsonWidgetArgs: JsonAnimatedSizeBuilderModel.fromDynamic(
          {
            'alignment': alignment,
            'clipBehavior': clipBehavior,
            'curve': curve,
            'duration': duration,
            'onEnd': onEnd,
            'reverseDuration': reverseDuration,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonAnimatedSizeBuilder(
          args: JsonAnimatedSizeBuilderModel.fromDynamic(
            {
              'alignment': alignment,
              'clipBehavior': clipBehavior,
              'curve': curve,
              'duration': duration,
              'onEnd': onEnd,
              'reverseDuration': reverseDuration,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonAnimatedSizeBuilder.kType,
      );