ChatComponentBloc constructor

ChatComponentBloc({
  1. ChatRepository? chatRepository,
})

Implementation

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