RoomComponentBloc constructor

RoomComponentBloc({
  1. RoomRepository? roomRepository,
})

Implementation

RoomComponentBloc({this.roomRepository})
    : super(RoomComponentUninitialized()) {
  on<FetchRoomComponent>((event, emit) {
    _mapLoadRoomComponentUpdateToState(event.id!);
  });
  on<RoomComponentUpdated>((event, emit) {
    emit(RoomComponentLoaded(value: event.value));
  });
}