range function
internal function
make a list based on predicate
Implementation
Iterable range(double n, {int end = 0}) {
return end != 0
? List.from(List.generate(end - n.round(), (int index) => index,
growable: true))
.map((k) => k + n)
: List.from(
List.generate(n.round(), (int index) => index, growable: true));
}