Range<T> class Null safety

Implementers

Constructors

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

Properties

empty bool
late, final
hashCode int
The hash code for this object.
read-only, override
isDiscrete bool
read-only
lowerBound LowerBound<T>
final
notEmpty bool
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
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 non-existent 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
    'empty'