JsonIndexedStack constructor

JsonIndexedStack({
  1. Map<String, dynamic> args = const {},
  2. JsonWidgetRegistry? registry,
  3. AlignmentGeometry alignment = AlignmentDirectional.topStart,
  4. Clip clipBehavior = Clip.hardEdge,
  5. int? index = 0,
  6. StackFit sizing = StackFit.loose,
  7. TextDirection? textDirection,
  8. 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,
      );