Tuple<A, B> class

Inheritance
Annotations
  • @Deprecated('Use either an generated tuple or Tuple`N`')

Constructors

Tuple(A e0, B e1)
const

Properties

e0 → A
finalinherited
e1 → B
finalinherited
hashCode int
The hash code for this object.
no setterinherited
left → A
no setterinherited
no setterinherited
runtimeType ProductRuntimeType
A representation of the runtime type of the object.
no setterinherited

Methods

bimap<A1, B1>({required A1 a(A), required B1 b(B)}) TupleN2<A1, B1>
inherited
first<A1>(A1 fn(A)) TupleN2<A1, B>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
second<B1>(B1 fn(B p1)) TupleN2<A, B1>
inherited
swap() TupleN2<B, A>
inherited
toString() String
A string representation of this object.
inherited
visit<T>(T fn(A, B)) → T
inherited

Operators

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