text property
String?
get
text
The UTF-8 decoded text body of the HTTP request or response.
Returns null if the body is not valid UTF-8 data.
Implementation
String? get text {
try {
return const Utf8Decoder().convert(body);
} on FormatException {
return null;
}
}