runtimeTypeString method

String runtimeTypeString()

Returns the runtimeType, without the generic part.

Implementation

String runtimeTypeString() {
  var text = runtimeType.toString();
  var pos = text.indexOf('<');
  return (pos == -1) ? text : text.substring(0, pos);
}