Tuple2<T1, T2> class

Represents a 2-tuple, or pair.

Constructors

Tuple2(T1 item1, T2 item2)
Tuple2.fromList(List items)
Creates a new tuple value with the specified list items.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
item1 ↔ T1
The first item of the tuple.
getter/setter pair
item2 ↔ T2
The second item of the tuple.
getter/setter pair
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
toList({bool growable = false}) List
Creates a List containing the items of this Tuple2.
toString() String
A string representation of this object.
override

Operators

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