plaintextBody property

String get plaintextBody

Use this to get a plain-text representation of the event, stripping things like spoilers and thelike. Useful for plain text notifications.

Implementation

String get plaintextBody => content['format'] == 'org.matrix.custom.html'
    ? HtmlToText.convert(formattedText)
    : body;