Pair<A, B> class Null safety

Creates a pair of values.

Constructors

Pair(A _a, B _b)
Creates a Pair of two values. Both can have different types

Properties

first → A
Get the left/first value in this Pair
read-only
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
second → B
Get the right/last value in this Pair
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Combines a and b into a String, like "a, b".
override

Operators

operator ==(dynamic other) bool
Compares a Pair with another Object. [...]
override