Progression constructor Null safety
Creates an arithmetic progression from first to last inclusively,
with common difference of step.
Implementation
const Progression(int first, int last, {int step = 1})
: _first = first,
_last = last,
step = step != 0 ? step : 1;