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