showComponentBody method
Returns a widget that specifies a design of this component.
Recommendation: type can by used to determine what widget should be returned.
Implementation
@override
Widget showComponentBody(ComponentData componentData) {
if (componentData.type == "port") {
return PortComponent(componentData: componentData);
} else {
return RectComponent(componentData: componentData);
}
}