export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
LimitedBox realWidget = widget as LimitedBox;
return <String, dynamic>{
"type": widgetName,
"maxWidth": realWidget.maxWidth == double.infinity
? infinity
: realWidget.maxWidth,
"maxHeight": realWidget.maxHeight == double.infinity
? infinity
: realWidget.maxHeight,
"child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
};
}