export method
export the runtime widget to json
Implementation
@override
Map<String, dynamic> export(Widget? widget, BuildContext? buildContext) {
var realWidget = widget as ClipRRect;
// Convert [BorderRadiusGeometry] into a [BorderRadius]
var borderRadius = realWidget.borderRadius.resolve(
Directionality.of(buildContext!),
);
return <String, dynamic>{
"type": widgetName,
"borderRadius":
"${borderRadius.topLeft.x},${borderRadius.topRight.x},${borderRadius.bottomLeft.x},${borderRadius.bottomRight.x}",
"clipBehavior": exportClipBehavior(realWidget.clipBehavior),
"child": DynamicWidgetBuilder.export(realWidget.child, buildContext)
};
}