allText method

  1. @override
Future<String> allText()
override

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');
}