export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as Scaffold;
return <String, dynamic>{
"type": widgetName,
"body": DynamicWidgetBuilder.export(realWidget.body, buildContext),
"appBar": DynamicWidgetBuilder.export(realWidget.appBar, buildContext),
"floatingActionButton": DynamicWidgetBuilder.export(
realWidget.floatingActionButton, buildContext),
"backgroundColor": realWidget.backgroundColor != null
? realWidget.backgroundColor!.value.toRadixString(16)
: null,
};
}