to method

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

Returns a range from this value up to and including the specified to value.

Implementation

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