FacilityBloc constructor
FacilityBloc({
- required FacilityDataRepository facilityDataRepository,
- 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);
}