JsonAnimatedSize constructor
JsonAnimatedSize({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- AlignmentGeometry alignment = Alignment.center,
- Clip clipBehavior = Clip.hardEdge,
- Curve curve = Curves.linear,
- required Duration duration,
- void onEnd()?,
- Duration? reverseDuration,
- 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,
);