ProfileComponentBloc constructor

ProfileComponentBloc({
  1. ProfileRepository? profileRepository,
})

Implementation

ProfileComponentBloc({this.profileRepository})
    : super(ProfileComponentUninitialized()) {
  on<FetchProfileComponent>((event, emit) {
    _mapLoadProfileComponentUpdateToState(event.id!);
  });
  on<ProfileComponentUpdated>((event, emit) {
    emit(ProfileComponentLoaded(value: event.value));
  });
}