export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as Row;
return <String, dynamic>{
"type": "Row",
"crossAxisAlignment":
exportCrossAxisAlignment(realWidget.crossAxisAlignment),
"mainAxisAlignment":
exportMainAxisAlignment(realWidget.mainAxisAlignment),
"mainAxisSize":
realWidget.mainAxisSize == MainAxisSize.max ? "max" : "min",
"textBaseline": realWidget.textBaseline == TextBaseline.alphabetic
? "alphabetic"
: "ideographic",
"textDirection": realWidget.textDirection != null
? exportTextDirection(realWidget.textDirection)
: null,
"verticalDirection":
realWidget.verticalDirection == VerticalDirection.down
? "down"
: "up",
"children":
DynamicWidgetBuilder.exportWidgets(realWidget.children, buildContext),
};
}