JsonAnimatedDefaultTextStyle constructor
JsonAnimatedDefaultTextStyle({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- Curve curve = Curves.linear,
- required Duration duration,
- int? maxLines,
- void onEnd()?,
- TextOverflow overflow = TextOverflow.clip,
- bool softWrap = true,
- required TextStyle style,
- TextAlign? textAlign,
- TextHeightBehavior? textHeightBehavior,
- TextWidthBasis textWidthBasis = TextWidthBasis.parent,
- 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,
);