IntRange class

Inheritance

Constructors

IntRange({Bound<int>? lowerBound, Bound<int>? upperBound})
IntRange.empty()
IntRange.parse(String range)
factory

Properties

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

Methods

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

    Operators

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