labelHint function

String? labelHint(
  1. SceneNode root,
  2. String wanted
)

nextStep naming the id behind a label the agent passed as a glintId, or null.

Implementation

String? labelHint(SceneNode root, String wanted) {
  final id = idForLabel(root, wanted);
  return id == null ? null : '"$wanted" is a label, not an id: pass glintId:"$id"';
}