toPlainText method

String toPlainText([
  1. Iterable<EmbedBuilder>? embedBuilders,
  2. EmbedBuilder? unknownEmbedBuilder
])

Returns plain text representation of this document.

Implementation

String toPlainText([
  Iterable<EmbedBuilder>? embedBuilders,
  EmbedBuilder? unknownEmbedBuilder,
]) =>
    _root.children
        .map((e) => e.toPlainText(embedBuilders, unknownEmbedBuilder))
        .join();