sourceFor method

SceneNode? sourceFor(
  1. String glintId
)

Raw SceneNode behind a glintId — one shared lazy index so enrichers don't each re-walk sourceScene.

Implementation

SceneNode? sourceFor(String glintId) => (_sourceIndex ??= {
      for (final n in sourceScene.root.walk())
        if (!n.isOffstage && n.glintId != null) n.glintId!: n,
    })[glintId];