KeyValueInterval class Null safety

Defines an interval.

Constructors

KeyValueInterval([Comparable? _startKey, Comparable? _startValue, Comparable? _endKey, Comparable? _endValue])
Creates a interval from individual keys and values.
const
KeyValueInterval.fromPairs(Pair start, Pair end)
Creates a interval from key/value pairs.
factory

Properties

end Pair
The upper limit.
read-only
hashCode int
The hash code for this object. [...]
read-only, override
isUnlimited bool
Returns true if this interval is unbounded.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
start Pair
The lower limit.
read-only

Methods

contains(KeyValueInterval other) bool
Returns true if this interval contains the interval other.
containsPoint(Pair p) bool
Returns true if point is within the bounds (inclusive) of this interval.
endAt(Comparable key, Comparable value) KeyValueInterval
Creates a interval replacing the upper limit.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
startAt(Comparable key, Comparable value) KeyValueInterval
Creates a interval replacing the lower limit.
toString() String
A string representation of this object. [...]
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override