allElements property

Iterable<MusicalElement> get allElements

All the elements of this measure as a single stream.

For a plain Measure this is exactly elements. Subclasses that keep content outside of elements — notably MultiVoiceMeasure, which stores its notes inside Voice objects — override this getter so that consumers have one correct way to walk any measure regardless of its concrete type.

Implementation

Iterable<MusicalElement> get allElements => elements;