Tuple<T, R> class

A generic Tuple class with two typed elements, T and R. Tuples are immutable, and this class provides a simple way to store pairs of values.

Constructors

Tuple(T item1, R item2)
Constructor to initialize the tuple with the provided values.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
item1 → T
Field to store the first element of the tuple.
final
item2 → R
Field to store the second element of the tuple.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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