IntProgression constructor

IntProgression(
  1. int first,
  2. int endInclusive, {
  3. int step = 1,
})

Implementation

IntProgression(int first, int endInclusive, {int step = 1})
    : assert(() {
        return true;
      }()),
      _first = first,
      // can't initialize directly du to naming conflict with step() method
      // ignore: prefer_initializing_formals
      stepSize = step,
      _last = _getProgressionLastElement(first, endInclusive, step);