pages method
parse pages in book and put them all in it
Implementation
@override
void pages(Book book) {
final summary = book.summary;
final all = <String, BookPage>{};
summary.walk((article) {
final path = article.path;
if (path != null) {
all[path] = BookPage(filename: path);
} else {
logger.w("path of article '${article.title}' is null!");
}
});
book.pages
..clear()
..addAll(all);
}