groupFor function

String groupFor(
  1. Scene scene,
  2. SceneNode source
)

Evaluates one expression over many elements at once: f is a block-bodied lambda taking an Element and returning a String; results come back ;-joined in ids order. The inspector group that owns source's id: overlay nodes come from the full-tree read, whose ids the summary group cannot look up.

Implementation

String groupFor(Scene scene, SceneNode source) {
  final id = source.glintId;
  return id != null && scene.isInOverlay(id) ? (scene.fullGroupName ?? scene.groupName) : scene.groupName;
}