FacilityBloc constructor

FacilityBloc({
  1. required FacilityDataRepository facilityDataRepository,
  2. required ProjectFacilityDataRepository projectFacilityDataRepository,
})

The constructor for FacilityBloc. It initializes the bloc with an empty state and sets up the event handler for loading facilities.

Implementation

FacilityBloc({
  required this.facilityDataRepository,
  required this.projectFacilityDataRepository,
}) : super(const FacilityEmptyState()) {
  on(_handleLoadFacilitiesForProjectId);
}