toSimpleText method

String toSimpleText()

Implementation

String toSimpleText() {
  final result = StringBuffer();
  for(final span in spans) {
    if(span is TextSpan) {
      final text = span.text;
      if(text != null) {
        result.write(text);
      }
    }
  }
  return result.toString();
}