PayComponentBloc constructor
PayComponentBloc({
- PayRepository? payRepository,
Implementation
PayComponentBloc({this.payRepository}) : super(PayComponentUninitialized()) {
on<FetchPayComponent>((event, emit) {
_mapLoadPayComponentUpdateToState(event.id!);
});
on<PayComponentUpdated>((event, emit) {
emit(PayComponentLoaded(value: event.value));
});
}