FeedMenuComponentBloc constructor
FeedMenuComponentBloc({
- FeedMenuRepository? feedMenuRepository,
Implementation
FeedMenuComponentBloc({this.feedMenuRepository})
: super(FeedMenuComponentUninitialized()) {
on<FetchFeedMenuComponent>((event, emit) {
_mapLoadFeedMenuComponentUpdateToState(event.id!);
});
on<FeedMenuComponentUpdated>((event, emit) {
emit(FeedMenuComponentLoaded(value: event.value));
});
}