IntRange.until constructor

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

Returns an iterable of integers from 0 inclusive to stop inclusive with step.

IntRange.until(5, 2); // (0, 2, 4) IntRange.until(-5, -2); // (0, -2, -4)

Implementation

factory IntRange.until(int stop, [int step = 1]) => IntRange(0, stop, step);