FollowingDashboardComponentBloc constructor

FollowingDashboardComponentBloc({
  1. FollowingDashboardRepository? followingDashboardRepository,
})

Implementation

FollowingDashboardComponentBloc({this.followingDashboardRepository})
    : super(FollowingDashboardComponentUninitialized()) {
  on<FetchFollowingDashboardComponent>((event, emit) {
    _mapLoadFollowingDashboardComponentUpdateToState(event.id!);
  });
  on<FollowingDashboardComponentUpdated>((event, emit) {
    emit(FollowingDashboardComponentLoaded(value: event.value));
  });
}