Tuple2<T1, T2> class
Resulting composition of multiple sources like indexes or other Iterables. Adapted from Tuple package
Constructors
- Tuple2(T1 first, T2 second)
-
Creates a new tuple value with the specified items.
const
- Tuple2.fromList(List items)
-
Create a new tuple value with the specified list
items
.factory
Properties
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
-
withItem1(
T1 v) → Tuple2< T1, T2> - Returns a tuple with the first item set to the specified value.
-
withItem2(
T2 v) → Tuple2< T1, T2> - Returns a tuple with the second item set to the specified value.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
-
operator [](
int i) → Object? - Operator access