nameWithoutSuffix property
String
get
nameWithoutSuffix
Returns the display string of this type without nullability suffix
Implementation
String get nameWithoutSuffix {
final name = getDisplayString();
return name.endsWith('?') ? name.substring(0, name.length - 1) : name;
}