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