descending method

Interval descending({
  1. bool isDescending = true,
})

Returns a copy of this Interval based on isDescending.

Example:

Interval.m2.descending() == -Interval.m2
Interval.M3.descending(isDescending: false) == Interval.M3
(-Interval.P5).descending() == -Interval.P5
(-Interval.M7).descending(isDescending: false) == Interval.M7

Implementation

Interval descending({bool isDescending = true}) => Interval._(
      Size(size * (this.isDescending == isDescending ? 1 : -1)),
      quality,
    );