rangeTo method

ComparableRange<T> rangeTo(
  1. T endInclusive
)

Creates a Range from this Comparable value to the specified endInclusive value.

Implementation

ComparableRange<T> rangeTo(T endInclusive) =>
    ComparableRange<T>(this, endInclusive);