buildAllStops function
Generates the flat list of ALL CaretStop in the document, in reading order. This is the "rail" on which Left/Right move.
Implementation
List<CaretStop> buildAllStops(Root root) {
_buildAllStopsCallCount++;
print('[NAV_DEBUG] buildAllStops call #$_buildAllStopsCallCount');
final out = <CaretStop>[];
for (final node in root.nodes) {
_collectStopsRecursive(node, out);
}
return out;
}