I'm trying to model some flutter components on MPS.
I have a concept "Widget" which is a parent concept to many other concepts (example: Text, Row, Column, ... all extend Widget).
For many of those concepts, in the "textgen" aspect, I want to generate a similar text format. I tried writing a generic textgen aspect for the Widget concept so that it'll apply to all concepts that extend it.
I'm trying to create something like this:
I got this far:
However, there doesn't seem to be a "getPropertyValue()" method or a "getChildName()" method that I can use for the template here. Any suggestions?
Note: there IS a child.getName() method that returns the VALUE of a NAME property, if one exists for the given concept. However, what I'm looking for is the name that the child node is given when the node is defined in the structure.
For example, for this concept "TextTheme", I want to get the children names "headline, title, body1" and not the TextStyle.name property