FollowRequestsDashboardComponentBloc constructor

FollowRequestsDashboardComponentBloc({
  1. FollowRequestsDashboardRepository? followRequestsDashboardRepository,
})

Implementation

FollowRequestsDashboardComponentBloc({this.followRequestsDashboardRepository})
    : super(FollowRequestsDashboardComponentUninitialized()) {
  on<FetchFollowRequestsDashboardComponent>((event, emit) {
    _mapLoadFollowRequestsDashboardComponentUpdateToState(event.id!);
  });
  on<FollowRequestsDashboardComponentUpdated>((event, emit) {
    emit(FollowRequestsDashboardComponentLoaded(value: event.value));
  });
}