DistinctCubit<S> constructor

DistinctCubit<S>(
  1. S initialState
)

A Cubit that enables state emission from one method call at a time.

If multiple state-emitting method calls are running at the same time, then this can prevent old method calls from emitting states in favor of the new method call states.

Implementation

DistinctCubit(super.initialState);