export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as IndexedStack;
return <String, dynamic>{
"type": widgetName,
"index": realWidget.index,
"alignment": realWidget.alignment != null
? exportAlignment(realWidget.alignment as Alignment?)
: AlignmentDirectional.topStart,
"textDirection": realWidget.textDirection != null
? exportTextDirection(realWidget.textDirection)
: null,
"children":
DynamicWidgetBuilder.exportWidgets(realWidget.children, buildContext)
};
}