withEndpoints method
Replaces ChordAnnotation.startIndex and ChordAnnotation.endIndex together.
The parameters are assert-coupled, so they only move as a pair.
Implementation
ChordAnnotation withEndpoints(int startIndex, int endIndex) =>
copyWith(startIndex: startIndex, endIndex: endIndex);