at method
The page that holds anchor, and the page it is in, for a link the
site resolved while it rendered.
Implementation
({DVDocsPage page, DVDocsBlock block})? at(String anchor) {
for (final DVDocsPage page in pages) {
for (final DVDocsBlock block in page.blocks) {
if (block.anchor == anchor) return (page: page, block: block);
if (block is DVDocsTable &&
block.rows.any((DVDocsRow r) => r.id == anchor)) {
return (page: page, block: block);
}
}
}
return null;
}