Tuple2<T1, T2> class
Represents a 2-tuple
compatible with MapEntry<T1, T2>
- Implemented types
-
- MapEntry<
T1, T2>
- MapEntry<
Constructors
- Tuple2(T1 item1, T2 item2)
-
const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- item1 → T1
-
final
- item2 → T2
-
final
- iterable → Iterable
-
no setter
- key → T1
-
The key of the entry.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → T2
-
The value associated to key in a map.
no setteroverride
Methods
-
apply<
R> (R f(T1, T2)) → R -
apply a function
f
over tuple fields -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toList(
{bool growable = false}) → List -
toString(
) → String -
A string representation of this object.
override
-
withItem1<
E> (E newItem) → Tuple2< E, T2> - Returns a tuple with the item1 set to the specified value.
-
withItem2<
E> (E newItem) → Tuple2< T1, E> - Returns a tuple with the item2 set to the specified value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override