explode method

List<E> explode({
  1. E nextValue(
    1. E current
    )?,
  2. Comparator<E>? compare,
})

Fills this range of values between from and to (to not included).

Example:

(from: Note.c, to: Note.e.flat).explode()
  == const [Note.c, Note.d.flat, Note.d, Note.e.flat]

See also:

Implementation

List<E> explode({E Function(E current)? nextValue, Comparator<E>? compare}) =>
    _explode(
      nextValue: nextValue ?? Scalable.chromaticMotion,
      compare: compare ?? Scalable.compareEnharmonically,
    );