catchEventIn<C extends BlocPresentationMixin<S, E> , S, E> function
Catch events from a BlocPresentationMixin and add them to a list.
Implementation
C catchEventIn<C extends BlocPresentationMixin<S, E>, S, E>(C cubit, List<E> events) {
cubit.presentation.listen(events.add);
return cubit;
}