Flattens the TextSpan tree into a single string.
Styles are not honored in this process.
Source
String toPlainText() { assert(debugAssertIsValid()); StringBuffer buffer = new StringBuffer(); visitTextSpan((TextSpan span) { buffer.write(span.text); return true; }); return buffer.toString(); }