Tuple2<T1, T2> class

Annotations

Constructors

Tuple2(T1 first, T2 second)
const
Tuple2.empty()
factory
Tuple2.fromList(List items)
Create a new tuple value with the specified list items.
factory

Properties

$1 → T1
no setter
$2 → T2
no setter
first → T1
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 → T2
final

Methods

mapFirst<U>(U f(T1)) → Tuple2<U, T2>
mapSecond<U>(U f(T2)) → Tuple2<T1, U>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

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

Static Methods

zip<A, B>(A? first, B? second) → Tuple2<A, B>?
zipIt<A, B>(Iterable<A> first, Iterable<B> second) → Iterable<Tuple2<A, B>>