withEndpoints method

ChordAnnotation withEndpoints(
  1. int startIndex,
  2. int endIndex
)

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);