OctetExtensions<T0, T1, T2, T3, T4, T5, T6, T7> extension

on
  • Octet<T0, T1, T2, T3, T4, T5, T6, T7>

Methods

ifType<R>({required void first(T0), required void second(T1), required void third(T2), required void fourth(T3), required void fifth(T4), required void sixth(T5), required void seventh(T6), required void eighth(T7)}) → void
Executes the provided callback if the current value in the Octet<T0, T1, T2, T3, T4, T5, T6, T7> is of the specified type R.
map<R>({required R first(T0)?, required R second(T1)?, required R third(T2)?, required R fourth(T3)?, required R fifth(T4)?, required R sixth(T5)?, required R seventh(T6)?, required R eighth(T7)?}) → R
Maps the current instance of Octet<T0, T1, T2, T3, T4, T5, T6, T7> 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> fifth(T4)?, Future<void> sixth(T5)?, Future<void> seventh(T6)?, Future<void> eighth(T7)?}) Future<void>
Executes a callback based on the type of value stored in the Octet<T0, T1, T2, T3, T4, T5, T6, T7>.