JsonStack constructor
JsonStack({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- AlignmentGeometry alignment = AlignmentDirectional.topStart,
- Clip clipBehavior = Clip.hardEdge,
- StackFit fit = StackFit.loose,
- TextDirection? textDirection,
- List<
JsonWidgetData> children = const <JsonWidgetData>[],
Implementation
JsonStack({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.alignment = AlignmentDirectional.topStart,
this.clipBehavior = Clip.hardEdge,
this.fit = StackFit.loose,
this.textDirection,
this.children = const <JsonWidgetData>[],
}) : super(
jsonWidgetArgs: JsonStackBuilderModel.fromDynamic(
{
'alignment': alignment,
'clipBehavior': clipBehavior,
'fit': fit,
'textDirection': textDirection,
'children': children,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonStackBuilder(
args: JsonStackBuilderModel.fromDynamic(
{
'alignment': alignment,
'clipBehavior': clipBehavior,
'fit': fit,
'textDirection': textDirection,
'children': children,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonStackBuilder.kType,
);