FeedFrontComponentBloc constructor
FeedFrontComponentBloc({
- FeedFrontRepository? feedFrontRepository,
Implementation
FeedFrontComponentBloc({this.feedFrontRepository})
: super(FeedFrontComponentUninitialized()) {
on<FetchFeedFrontComponent>((event, emit) {
_mapLoadFeedFrontComponentUpdateToState(event.id!);
});
on<FeedFrontComponentUpdated>((event, emit) {
emit(FeedFrontComponentLoaded(value: event.value));
});
}