nextArticle method
Find the sibling article.
Implementation
SummaryArticle? nextArticle(SummaryArticle article) {
final level = article.level;
bool wasPrev = false;
return findArticle((a) {
if (wasPrev && a.ref != null) return true;
wasPrev = wasPrev || (a.level == level);
return false;
});
}