getTypeString method

String getTypeString()

Implementation

String getTypeString() {
  String type = getDisplayString(withNullability: true).replaceAll('*', '?');
  if (type[type.length - 1] == '?') {
    type = type.substring(0, type.length - 1);
  }
  return type;
}