Pair class Null safety

A Pair represents a key/value pair.

Implemented types

Constructors

Pair(Comparable? key, Comparable? value)
Creates a key/value pair.
const
Pair.max([Comparable? key, Comparable? value])
Creates a key/value pair, with null values for key and/or value interpreted as the maximum possible value.
Pair.min([Comparable? key, Comparable? value])
Creates a key/value pair, with null values for key and/or value interpreted as the minimum possible value.

Properties

hashCode int
The hash code for this object. [...]
read-only, override
isMax bool
When true, null values for key and/or value are interpreted as the maximum possible value.
final
isMin bool
When true, null values for key and/or value are interpreted as the minimum possible value.
final
key Comparable?
The key.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
value Comparable?
The value.
final

Methods

compareTo(Pair other) int
Compares this object to another object. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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