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