Semanticizer class

Module C entry — bottom-up classify + compact + hoist page to root.

Constructors

Semanticizer({ClassifierRegistry? registry, SceneCompactor compactor = const SceneCompactor()})

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

classifyNode(SceneNode root, {bool imageCandidates = false}) → SemanticNode
Classify a subtree without hoisting to a page root. Used by OverlayEnricher to classify dialog/overlay content that has no Scaffold ancestor.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
selectActivePage(SemanticNode classified) → SemanticNode
Picks the active page among multiple SemanticPages. Candidates are the MAXIMAL onstage pages — a page nested inside another (PageView tab, shell branch) is never a route. Offstage scaffolds already classified as SemanticUnknown, so siblings that remain are stacked navigator routes in overlay order: the LAST is the top of the stack, the screen the user sees. Falls back to SceneCompactor.hoistPage when no page exists.
semanticize(Scene scene, {bool imageCandidates = false}) → SemanticScene
imageCandidates keeps dissolved containers that might paint a decoration image as pending SemanticImages.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited