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