toIncluding method

List<int> toIncluding(
  1. int max, {
  2. int step = 1,
})

Implementation

List<int> toIncluding(int max, {int step = 1}) =>
    [for (int i = this; i <= max; i += step) i];