DiscreteRange<T> class Null safety

Inheritance
Implementers

Constructors

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

Properties

empty bool
late, final, inherited
hashCode int
The hash code for this object.
read-only, inherited
isDiscrete bool
read-only, inherited
lowerBound LowerBound<T>
read-only, override
notEmpty bool
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
upperBound UpperBound<T>
read-only, override

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
inherited
contains(Range<T> range) bool
inherited
containsElement(T element) bool
inherited
createRange({Bound<T>? lowerBound, Bound<T>? upperBound, bool empty = false}) Range<T>
inherited
difference(Range<T> range) Range<T>
  • inherited
    equal(Range<T> range) bool
    inherited
    increase(T operand) → T
    intersection(Range<T> range) Range<T>
    empty *
    inherited
    isAdjacentTo(Range<T> range) bool
    inherited
    noSuchMethod(Invocation invocation) → dynamic
    Invoked when a non-existent method or property is accessed.
    inherited
    notEqual(Range<T> range) bool
    inherited
    notExtendToTheLeftOf(Range<T> range) bool
    inherited
    notExtendToTheRightOf(Range<T> range) bool
    inherited
    overlap(Range<T> range) bool
    inherited
    strictlyLeftOf(Range<T> range) bool
    inherited
    strictlyRightOf(Range<T> range) bool
    inherited
    toString() String
    A string representation of this object.
    inherited
    union(Range<T> range) Range<T>
    result of range union would not be contiguous +
    inherited

    Operators

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