IntRange class Null safety

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.
read-onlyinherited
isDiscrete bool
read-onlyinherited
lowerBound LowerBound<int>
read-onlyinherited
notEmpty bool
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
upperBound UpperBound<int>
read-onlyinherited

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 non-existent 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