Returns the type name.
String get typeName { if (isFutureOr) { return 'FutureOr'; } var typeStr = type.toString(); var idx = typeStr.indexOf('<'); if (idx > 0) typeStr = typeStr.substring(0, idx); return typeStr; }