headingNamed method
Frozen heading from the previous pass, else one recorded this pass.
Implementation
PwHeading? headingNamed(String title) {
for (final PwHeading heading in frozenHeadings) {
if (heading.title == title) {
return heading;
}
}
for (final PwHeading heading in headings) {
if (heading.title == title) {
return heading;
}
}
return null;
}