AbstractItemBusPublisherCubit<S extends AbstractItemState> constructor

AbstractItemBusPublisherCubit<S extends AbstractItemState>(
  1. S initialState
)

Initializes the Cubit with state publishing to the event bus.

Implementation

AbstractItemBusPublisherCubit(super.initialState) {
  // Attach the stream to the event bus for publishing state changes
  _stateStreamSubscription = stream.attachToEventBus();
}