typeName property
String
get
typeName
Return the fully qualified name of the contained type.
For example, google.protobuf.Duration, or google.rpc.ErrorInfo.
Implementation
String get typeName {
const prefix = 'type.googleapis.com/';
final type = _type;
// Only extract the type name if we recognize the prefix.
if (type.startsWith(prefix)) {
return type.substring(prefix.length);
} else {
return type;
}
}