group method

BoundGroup group(
  1. String name
)

A bound group by name — placed or library asset alike; hand it to its own player for independent play. Names are the editor's, so this is the editor's door; a compiled motion holds its groups as fields.

Implementation

BoundGroup group(String name) {
  for (var entry in _groups.entries) {
    if (entry.key.name == name) return entry.value;
  }
  throw ArgumentError('"$name" is not a group of this motion');
}