range function
Implementation
List<int> range(int start, int end, [int step = 1]) {
int index = -1;
int length = max(((end - start) / step).ceil(), 0);
List<int> rl = List.filled(length, 0);
while ((length--) != 0) {
rl[++index] = start;
start += step;
}
return rl;
}