Tuple<A, B> class

Inheritance
Implemented types
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 → dynamic
A representation of the runtime type of the object.
no setterinherited

Methods

bimap<A1, B1>({required A1 a(A), required B1 b(B)}) Tuple<A1, B1>
Map the values A to A1 and B to B1 with the a and b mappers, respectively.
inherited
first<A1>(A1 fn(A)) Tuple<A1, B>
Map the left A value into an A1 with the fn mapper, while keeping the right value untouched.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
second<B1>(B1 fn(B p1)) Tuple<A, B1>
Map the right B value into an B1 with the fn mapper, while keeping the left value untouched.
inherited
swap() Tuple<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