ChatComponentBloc constructor
ChatComponentBloc({
- ChatRepository? chatRepository,
Implementation
ChatComponentBloc({this.chatRepository})
: super(ChatComponentUninitialized()) {
on<FetchChatComponent>((event, emit) {
_mapLoadChatComponentUpdateToState(event.id!);
});
on<ChatComponentUpdated>((event, emit) {
emit(ChatComponentLoaded(value: event.value));
});
}