allText method
The document's whole text, for "copy all". Empty for a format with no text to give (a scanned PDF, until it has been recognised).
Implementation
@override
Future<String> allText() async {
final layout = _layout;
return layout == null ? '' : [for (final p in layout.paragraphs) p.plainText].join('\n');
}