Returns decoded data as String, decoding it if not already decoded.
This method invokes decodedData and concatenates each String element into a single String.
The concatenated String is returned from this method as a Future.
If there is no body data, this method returns null.
If decodedData does not produce a List<String>, this method
throws an HTTPBodyDecoderException.
For a non-Future variant, see asString.
Source
Future<String> decodeAsString() async {
await decodedData;
return asString();
}