JsonStack constructor

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