MemberHasChatComponentBloc constructor

MemberHasChatComponentBloc({
  1. MemberHasChatRepository? memberHasChatRepository,
})

Implementation

MemberHasChatComponentBloc({this.memberHasChatRepository})
    : super(MemberHasChatComponentUninitialized()) {
  on<FetchMemberHasChatComponent>((event, emit) {
    _mapLoadMemberHasChatComponentUpdateToState(event.id!);
  });
  on<MemberHasChatComponentUpdated>((event, emit) {
    emit(MemberHasChatComponentLoaded(value: event.value));
  });
}