to method

Iterable<int> to(
  1. int other, [
  2. bool inclusive = true
])

Implementation

Iterable<int> to(int other, [bool inclusive = true]) => other > this
    ? [for (int i = this; i < other; i++) i, if (inclusive) other]
    : [for (int i = this; i > other; i--) i, if (inclusive) other];