SearchHouseholdsBloc constructor

SearchHouseholdsBloc({
  1. required String userUid,
  2. required String projectId,
  3. required IndividualDataRepository individual,
  4. required HouseholdMemberDataRepository householdMember,
  5. required HouseholdDataRepository household,
  6. required ProjectBeneficiaryDataRepository projectBeneficiary,
  7. required TaskDataRepository taskDataRepository,
  8. required BeneficiaryType beneficiaryType,
  9. required SideEffectDataRepository sideEffectDataRepository,
  10. required RegistrationDeliveryAddressRepo addressRepository,
  11. required ReferralDataRepository referralDataRepository,
  12. required IndividualGlobalSearchRepository individualGlobalSearchRepository,
  13. required HouseHoldGlobalSearchRepository houseHoldGlobalSearchRepository,
})

Implementation

SearchHouseholdsBloc(
    {required this.userUid,
    required this.projectId,
    required this.individual,
    required this.householdMember,
    required this.household,
    required this.projectBeneficiary,
    required this.taskDataRepository,
    required this.beneficiaryType,
    required this.sideEffectDataRepository,
    required this.addressRepository,
    required this.referralDataRepository,
    required this.individualGlobalSearchRepository,
    required this.houseHoldGlobalSearchRepository})
    : super(const SearchHouseholdsState()) {
  on(_handleClear);
  on(_handleSearchByHousehold);
}