IntRange constructor

const IntRange(
  1. int first,
  2. int last, {
  3. int step = 1,
})

Creates an arithmetic progression from first to last inclusively, with common difference of step which defaults to 1.

Implementation

const IntRange(int first, int last, {int step = 1})
    : super(first, last, step: step);