to method

IntRange to(
  1. int stop, [
  2. int step = 1
])

Implementation

IntRange to(int stop, [int step = 1]) => IntRange(this, stop, step);