FollowingComponentBloc constructor

FollowingComponentBloc({
  1. FollowingRepository? followingRepository,
})

Implementation

FollowingComponentBloc({this.followingRepository})
    : super(FollowingComponentUninitialized()) {
  on<FetchFollowingComponent>((event, emit) {
    _mapLoadFollowingComponentUpdateToState(event.id!);
  });
  on<FollowingComponentUpdated>((event, emit) {
    emit(FollowingComponentLoaded(value: event.value));
  });
}