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