extractText static method
Implementation
static Future<String> extractText({String? filePath, Uint8List? bytes, String? url}) async {
final UEpubBook book = await UEpubBook.open(path: filePath, bytes: bytes, url: url);
final StringBuffer buffer = StringBuffer();
for (int i = 0; i < book.chapterCount; i++) {
buffer.writeln((await book.chapter(i)).text);
}
await book.close();
return buffer.toString();
}