Range<T> class abstract

Implementers

Constructors

Range({Bound<T>? lowerBound, Bound<T>? upperBound})
Range.empty()

Properties

empty bool
latefinal
hashCode int
The hash code for this object.
no setteroverride
isDiscrete bool
no setter
lowerBound LowerBound<T>
final
notEmpty bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upperBound UpperBound<T>
final

Methods

comparator(T value1, T value2) int
Returns a negative number if value1 is less than value2, zero if they are equal, and a positive number if value1 is greater than value2. Almost the same: value1 - value2
contains(Range<T> range) bool
containsElement(T element) bool
createRange({Bound<T>? lowerBound, Bound<T>? upperBound, bool empty = false}) Range<T>
difference(Range<T> range) Range<T>
  • equal(Range<T> range) bool
    intersection(Range<T> range) Range<T>
    empty *
    isAdjacentTo(Range<T> range) bool
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a nonexistent method or property is accessed.
    inherited
    notEqual(Range<T> range) bool
    notExtendToTheLeftOf(Range<T> range) bool
    notExtendToTheRightOf(Range<T> range) bool
    overlap(Range<T> range) bool
    strictlyLeftOf(Range<T> range) bool
    strictlyRightOf(Range<T> range) bool
    toString() String
    A string representation of this object.
    override
    union(Range<T> range) Range<T>
    result of range union would not be contiguous +

    Operators

    operator ==(Object other) bool
    The equality operator.
    override

    Constants

    emptyName → const String