ChatDashboardComponentBloc constructor

ChatDashboardComponentBloc({
  1. ChatDashboardRepository? chatDashboardRepository,
})

Implementation

ChatDashboardComponentBloc({this.chatDashboardRepository})
    : super(ChatDashboardComponentUninitialized()) {
  on<FetchChatDashboardComponent>((event, emit) {
    _mapLoadChatDashboardComponentUpdateToState(event.id!);
  });
  on<ChatDashboardComponentUpdated>((event, emit) {
    emit(ChatDashboardComponentLoaded(value: event.value));
  });
}