debugOverlayContentIds static method
Walk fullRoot to find the Overlay widget, then inspect each
_OverlayEntryWidget child:
- Entries with a Scaffold descendant → base route, skip.
- Entries with only barrier widgets → modal barrier, skip (sets hasBarrier).
- Everything else → dialog content, include.
First meaningful glintId inside each surfaced dialog entry — the test
seam for overlay classification. Each entry is an
_OverlayEntryWidgetwrapper, so we dig to the first descendant carrying a glintId.
Implementation
@visibleForTesting
static List<String?> debugOverlayContentIds(SceneNode fullRoot) => _extractDialogEntries(fullRoot)
.contentRoots
.map((n) => n.walk().firstWhere((d) => d.glintId != null, orElse: () => n).glintId)
.toList();