Pair<T, S> class

Pair is used to combine together two values that may be of different data types. Pair provides a way to store two heterogeneous objects as a single unit.

eg.

const Vendor vendor1 = Vendor();
const Customer customer1 = Customer();

const Pair<Vendor,Customer> participants = Pair(vendor1,customer2);
Available extensions

Constructors

Pair([T? first, S? second])
const

Properties

first → T
no setter
hashCode int
The hash code for this object.
no setteroverride
isEmpty bool
no setter
isNotEmpty bool
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
second → S
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parallelMerge(M merger(T first, S second)) List<M>

Available on Pair<List<T>, List<S>>, provided by the PararellelMerge extension

toString() String
A string representation of this object.
override

Operators

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