rests property

List<Rest> get rests

Get all rests in this voice

Implementation

List<Rest> get rests {
  return elements.whereType<Rest>().toList();
}