MemberComponentBloc constructor

MemberComponentBloc({
  1. MemberRepository? memberRepository,
})

Implementation

MemberComponentBloc({this.memberRepository})
    : super(MemberComponentUninitialized()) {
  on<FetchMemberComponent>((event, emit) {
    _mapLoadMemberComponentUpdateToState(event.id!);
  });
  on<MemberComponentUpdated>((event, emit) {
    emit(MemberComponentLoaded(value: event.value));
  });
}