ComparableRange<T extends Comparable<T>> class

Represents a range of Comparable values such as String or DateTime

Implementation of Range which tightens the type for T to Comparable<T> for ranges of the same type

Inheritance

Constructors

ComparableRange(T start, T endInclusive)
Create a range of Comparable values such as String or DateTime

Properties

endInclusive → T
The last value in the range (inclusive).
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
start → T
The first value in the range.
final

Methods

contains(T value) → bool
Checks whether the specified value belongs to the range, is equal to start or endInclusive or lies between them
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited