BiFunctor<A, B> class
abstract
An BiFunctor type is an type which can map values from two categories into two others.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
bimap<
A1, B1> ({required A1 a(A), required B1 b(B)}) → BiFunctor< A1, B1> -
Map the values
A
toA1
andB
toB1
with thea
andb
mappers, respectively. -
first<
A1> (A1 fn(A)) → BiFunctor< A1, B> -
Map the left
A
value into anA1
with thefn
mapper, while keeping the right value untouched. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
second<
B1> (B1 fn(B)) → BiFunctor< A, B1> -
Map the right
B
value into anB1
with thefn
mapper, while keeping the left value untouched. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited