getPlainText method

String getPlainText(
  1. int index,
  2. int len, [
  3. bool includeEmbeds = false
])

Returns plain text within the specified text range.

Implementation

String getPlainText(int index, int len, [bool includeEmbeds = false]) {
  final res = queryChild(index);
  return (res.node as Line).getPlainText(
      res.offset, len, includeEmbeds ? editorConfigurations : null);
}