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