getBodyDecoded method
Returns the decoded body as text. Chilkat first decodes the
Content-Transfer-Encoding and then interprets text according to the
declared charset.
Use a byte-oriented getter for binary content. A string result cannot
reliably represent arbitrary binary bytes or embedded NUL bytes. Use
getBodyBd or GetBodyBinary for binary payloads.
Throws a ChilkatException if the call fails; the details are in ChilkatException.lastErrorText.
Implementation
String getBodyDecoded() {
final h = _handle;
final r = _CkMime_GetBodyDecoded(h);
if (r == nullptr) {
throw _fail('getBodyDecoded');
}
return r.toDartString();
}