text property
String?
get
text
The explanation as text (plain text or JSON, depending on the requested output format), or null if the server sent something other than a string.
Implementation
String? get text {
if (!typeUrl.endsWith('/google.protobuf.StringValue')) {
return null;
}
try {
return proto.StringValue.fromBuffer(value).value;
} on InvalidProtocolBufferException {
return null;
} on ArgumentError {
// protobuf 6.1.0 reports some malformed lengths with a RangeError or an
// ArgumentError instead (see parseStoredProto).
return null;
}
}