toPlainText method
String
toPlainText([
- Iterable<
EmbedBuilder> ? embedBuilders, - EmbedBuilder? unknownEmbedBuilder
override
Implementation
@override
String toPlainText([
Iterable<EmbedBuilder>? embedBuilders,
EmbedBuilder? unknownEmbedBuilder,
]) {
final builders = embedBuilders;
if (builders != null) {
for (final builder in builders) {
if (builder.key == value.type) {
return builder.toPlainText(this);
}
}
}
if (unknownEmbedBuilder != null) {
return unknownEmbedBuilder.toPlainText(this);
}
return Embed.kObjectReplacementCharacter;
}