PolicyPresentationComponentBloc constructor

PolicyPresentationComponentBloc({
  1. PolicyPresentationRepository? policyPresentationRepository,
})

Implementation

PolicyPresentationComponentBloc({this.policyPresentationRepository})
    : super(PolicyPresentationComponentUninitialized()) {
  on<FetchPolicyPresentationComponent>((event, emit) {
    _mapLoadPolicyPresentationComponentUpdateToState(event.id!);
  });
  on<PolicyPresentationComponentUpdated>((event, emit) {
    emit(PolicyPresentationComponentLoaded(value: event.value));
  });
}