KeyValueInterval class

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.
no setter
hashCode int
The hash code for this object.
no setteroverride
isUnlimited bool
Returns true if this interval is unbounded.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start Pair
The lower limit.
no setter

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 nonexistent 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