FaderComponentBloc constructor

FaderComponentBloc({
  1. FaderRepository? faderRepository,
})

Implementation

FaderComponentBloc({this.faderRepository})
    : super(FaderComponentUninitialized()) {
  on<FetchFaderComponent>((event, emit) {
    _mapLoadFaderComponentUpdateToState(event.id!);
  });
  on<FaderComponentUpdated>((event, emit) {
    emit(FaderComponentLoaded(value: event.value));
  });
}