JsonAnimatedPositioned constructor

JsonAnimatedPositioned({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. double? bottom,
  4. Curve curve = Curves.linear,
  5. required Duration duration,
  6. double? height,
  7. double? left,
  8. void onEnd()?,
  9. double? right,
  10. double? top,
  11. double? width,
  12. required JsonWidgetData child,
})

Implementation

JsonAnimatedPositioned({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.bottom,
  this.curve = Curves.linear,
  required this.duration,
  this.height,
  this.left,
  this.onEnd,
  this.right,
  this.top,
  this.width,
  required this.child,
}) : super(
        jsonWidgetArgs: JsonAnimatedPositionedBuilderModel.fromDynamic(
          {
            'bottom': bottom,
            'curve': curve,
            'duration': duration,
            'height': height,
            'left': left,
            'onEnd': onEnd,
            'right': right,
            'top': top,
            'width': width,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonAnimatedPositionedBuilder(
          args: JsonAnimatedPositionedBuilderModel.fromDynamic(
            {
              'bottom': bottom,
              'curve': curve,
              'duration': duration,
              'height': height,
              'left': left,
              'onEnd': onEnd,
              'right': right,
              'top': top,
              'width': width,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonAnimatedPositionedBuilder.kType,
      );