DoubletExtensions<T0, T1> extension

on

Methods

ifType<R>({required void callback(R)}) → void

Available on Doublet<T0, T1>, provided by the DoubletExtensions extension

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

Available on Doublet<T0, T1>, provided by the DoubletExtensions extension

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>

Available on Doublet<T0, T1>, provided by the DoubletExtensions extension

Executes a callback based on the type of value stored in the Doublet<T0, T1>.