getPlainText method

String getPlainText()

Returns plain text for each node within selection

Implementation

String getPlainText() {
  final text = document.getPlainText(selection.start, selection.end - selection.start);
  return text;
}