JsonAnimatedDefaultTextStyle constructor

JsonAnimatedDefaultTextStyle({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. Curve curve = Curves.linear,
  4. required Duration duration,
  5. int? maxLines,
  6. void onEnd()?,
  7. TextOverflow overflow = TextOverflow.clip,
  8. bool softWrap = true,
  9. required TextStyle style,
  10. TextAlign? textAlign,
  11. TextHeightBehavior? textHeightBehavior,
  12. TextWidthBasis textWidthBasis = TextWidthBasis.parent,
  13. required JsonWidgetData child,
})

Implementation

JsonAnimatedDefaultTextStyle({
  Map<String, dynamic> args = const {},
  JsonWidgetRegistry? registry,
  this.curve = Curves.linear,
  required this.duration,
  this.maxLines,
  this.onEnd,
  this.overflow = TextOverflow.clip,
  this.softWrap = true,
  required this.style,
  this.textAlign,
  this.textHeightBehavior,
  this.textWidthBasis = TextWidthBasis.parent,
  required this.child,
}) : super(
        jsonWidgetArgs: JsonAnimatedDefaultTextStyleBuilderModel.fromDynamic(
          {
            'curve': curve,
            'duration': duration,
            'maxLines': maxLines,
            'onEnd': onEnd,
            'overflow': overflow,
            'softWrap': softWrap,
            'style': style,
            'textAlign': textAlign,
            'textHeightBehavior': textHeightBehavior,
            'textWidthBasis': textWidthBasis,
            'child': child,
            ...args,
          },
          args: args,
          registry: registry,
        ),
        jsonWidgetBuilder: () => JsonAnimatedDefaultTextStyleBuilder(
          args: JsonAnimatedDefaultTextStyleBuilderModel.fromDynamic(
            {
              'curve': curve,
              'duration': duration,
              'maxLines': maxLines,
              'onEnd': onEnd,
              'overflow': overflow,
              'softWrap': softWrap,
              'style': style,
              'textAlign': textAlign,
              'textHeightBehavior': textHeightBehavior,
              'textWidthBasis': textWidthBasis,
              'child': child,
              ...args,
            },
            args: args,
            registry: registry,
          ),
        ),
        jsonWidgetType: JsonAnimatedDefaultTextStyleBuilder.kType,
      );