getTypeStr static method
Implementation
static String getTypeStr(Property property) {
String type = TypeUtils.getPropertyNameStr(property);
if (property.subType.isNotEmpty) {
type += "<";
property.subType.forEach((element) {
type += getTypeStr(element) + ", ";
});
if (type.endsWith(", ")) {
type = type.substring(0, type.length - 2);
}
type += ">";
}
if (property.canBeNull) {
type += "?";
}
return type;
}