to method

Range<int> to(
  1. int end, {
  2. int? step,
})

Shorthand to create a range of int numbers, starting with the receiver (inclusive) up to but not including end (exclusive).

Implementation

Range<int> to(int end, {int? step}) => IntegerRange(this, end, step);