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