$<T, S> class

represent a pair of values of type T and S

// create tuple
final tpl = $(1,'a');
Available extensions

Constructors

$(T $0, S $1)
const

Properties

$0 → T
final
$1 → S
final
hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

bimap<P, Q>(P f(T), Q g(S)) $<P, Q>

Available on $<T, S>, provided by the TupleOps extension

apply function f on left value and g on right value and return tuple.
mapN<P>(P f(T, S)) → P

Available on $<T, S>, provided by the TupleOps extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
swap() $<S, T>

Available on $<T, S>, provided by the TupleOps extension

returns new tuple swapping left one with right one.
toString() String
A string representation of this object.
override

Operators

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