explode method

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

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

Example:

const (from: 1, to: 10).explode(
  nextValue: (current) => current + 1,
  compare: Comparable.compare,
) == const [1, 2, 3, 4, 5, 6, 7, 8, 9]

See also:

Implementation

List<E> explode({
  required E Function(E current) nextValue,
  required Comparator<E> compare,
}) =>
    _explode(nextValue: nextValue, compare: compare);