export method

  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 Positioned;
  return <String, dynamic>{
    "type": "Positioned",
    "top": realWidget.top ?? null,
    "right": realWidget.right ?? null,
    "bottom": realWidget.bottom ?? null,
    "left": realWidget.left ?? null,
    "width": realWidget.width ?? null,
    "height": realWidget.height ?? null,
    "child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
  };
}