build method

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

One tab per item the app built (a destination, an item's icon, a Tab), even when the item reads as empty, since its label is a string the enricher fills.

Implementation

@override
SemanticNode build(SceneNode node, List<SemanticNode> children) => SemanticContainer(
      glintId: node.glintId,
      hint: 'tabs',
      children: [
        for (final raw in node.children.where((c) => !c.isOffstage))
          SemanticButton(glintId: raw.glintId, children: [
            for (final c in children)
              if (c is SemanticIcon && c.glintId == raw.glintId) c,
          ]),
      ],
    );