sceneArgName function

String? sceneArgName(
  1. String key
)

The argument's own name when key names one, else null.

The node-free half of resolveSceneKey, for the places that only need the spelling: a motion track is filed under the same key space and its group keeps arguments in their own map, and a label drops the prefix.

Implementation

String? sceneArgName(String key) => key.startsWith(sceneArgsPrefix)
    ? key.substring(sceneArgsPrefix.length)
    : null;