appendParagraphs static method

Future<void> appendParagraphs(
  1. EpubChapter chapter
)

Implementation

static Future<void> appendParagraphs(EpubChapter chapter) async {
  await Future.forEach(chapter.SubChapters as Iterable<EpubChapter>,
      (EpubChapter subChapter) async {
    var chapter = EpubChapter();
    chapter.Paragraphs.addAll(subChapter.Paragraphs);
  });
}