typeDisplayName function
Display string with the nullability suffix stripped.
Implementation
String typeDisplayName(DartType type) {
final full = type.getDisplayString();
return full.endsWith('?') ? full.substring(0, full.length - 1) : full;
}
Display string with the nullability suffix stripped.
String typeDisplayName(DartType type) {
final full = type.getDisplayString();
return full.endsWith('?') ? full.substring(0, full.length - 1) : full;
}