downTo method

List<T> downTo(
  1. T downTo, {
  2. T? step,
})

Returns a range from this value down to the specified to value with the step.

Implementation

List<T> downTo(T downTo, {T? step}) =>
    range(this, downTo: downTo, step: step);