build method
Implementation
@override
SemanticNode build(SceneNode node, List<SemanticNode> children) {
// Offstage Scaffolds never reach here — Semanticizer short-circuits them.
SemanticAppBar? appBar;
final body = <SemanticNode>[];
for (final c in children) {
if (appBar == null && c is SemanticAppBar) {
appBar = c;
} else {
body.add(c);
}
}
return SemanticPage(
glintId: node.glintId,
appBar: appBar,
body: body,
);
}