export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as Stack;
return <String, dynamic>{
"type": "Stack",
"alignment": realWidget.alignment is AlignmentDirectional ?
exportAlignmentDirectional(realWidget.alignment as AlignmentDirectional)
: exportAlignment(realWidget.alignment as Alignment),
"textDirection": exportTextDirection(realWidget.textDirection),
"fit": exportStackFit(realWidget.fit),
"clipBehavior": exportClipBehavior(realWidget.clipBehavior),
"children":
DynamicWidgetBuilder.exportWidgets(realWidget.children, buildContext)
};
}