export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as PageView;
String scrollDirection = "vertical";
if (realWidget.scrollDirection == Axis.horizontal) {
scrollDirection = "horizontal";
}
var children = realWidget.childrenDelegate as SliverChildListDelegate;
return <String, dynamic>{
"type": "PageView",
"scrollDirection": scrollDirection,
"reverse": realWidget.reverse,
"pageSnapping": realWidget.pageSnapping,
"children":
DynamicWidgetBuilder.exportWidgets(children.children, buildContext)
};
}