build method

  1. @override
SemanticNode build(
  1. SceneNode node,
  2. List<SemanticNode> children
)
override

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,
  );
}