range method

Range range([
  1. dynamic start,
  2. dynamic end
])

Returns a rang bewteen the start and end values. If no start or end are specified, an 'infinite' stream will be returned.

Implementation

Range range([start, end]) {
  if (start == null) {
    return Range.asStream();
  } else if (end == null) {
    return Range(start);
  } else {
    return Range.withStart(start, end);
  }
}