DoubletExtensions<T0, T1> extension
- on
-
- Doublet<
T0, T1>
- Doublet<
Methods
-
ifType<
R> ({required void callback(R)}) → void -
Executes the provided callback if the current value in the Doublet<T0, T1> is of the specified type
R
. -
map<
R> ({required R first(T0)?, required R second(T1)?}) → R -
Maps the current instance of Doublet<T0, T1> to a different type
R
. -
on<
R> ({Future< void> first(T0)?, Future<void> second(T1)?}) → Future<void> - Executes a callback based on the type of value stored in the Doublet<T0, T1>.