Pair<A, B> class

Represents a generic pair of two values.

There is no meaning attached to values in this class, it can be used for any purpose. Pair exhibits value semantics, i.e. two pairs are equal if both components are equal.

A : type of the first value B : type of the second value

Available Extensions

Constructors

Pair(A first, B second)
const

Properties

first → A
first : First value
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second → B
second : Second value
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
Returns string representation of the Pair including its first and second values.
override

Operators

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