getPlainText method

String getPlainText(
  1. int index,
  2. int len, {
  3. @internal bool includeEmbeds = false,
})

Returns plain text within the specified text range.

Implementation

String getPlainText(
  int index,
  int len, {
  @internal bool includeEmbeds = false,
}) {
  final res = queryChild(index);
  return (res.node as Line).getPlainText(
    res.offset,
    len,
    embedBuilders: includeEmbeds ? _embedBuilders : null,
    unknownEmbedBuilder: includeEmbeds ? _unknownEmbedBuilder : null,
  );
}