range method

Observable<int> range (int startInclusive, int endInclusive)

Returns an Observable that emits a sequence of Integers within a specified range.

Example

Observable.range(1, 3).listen((i) => print(i)); // Prints 1, 2, 3

Observable.range(3, 1).listen((i) => print(i)); // Prints 3, 2, 1

Implementation

static Observable<int> range(int startInclusive, int endInclusive) =>
    new Observable<int>(new RangeStream(startInclusive, endInclusive));