export method Null safety

  1. @override
Map<String, dynamic> export(
  1. Widget? widget,
  2. BuildContext? buildContext
)
override

export the runtime widget to json

Implementation

@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
  var realWidget = widget as Center;
  return <String, dynamic>{
    "type": widgetName,
    "widthFactor": realWidget.widthFactor,
    "heightFactor": realWidget.heightFactor,
    "child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
  };
}