BeneficiaryRegistrationBloc constructor

BeneficiaryRegistrationBloc(
  1. BeneficiaryRegistrationState initialState, {
  2. required IndividualDataRepository individualRepository,
  3. required HouseholdDataRepository householdRepository,
  4. required HouseholdMemberDataRepository householdMemberRepository,
  5. required ProjectBeneficiaryDataRepository projectBeneficiaryRepository,
  6. required TaskDataRepository taskDataRepository,
  7. required BeneficiaryType beneficiaryType,
})

Implementation

BeneficiaryRegistrationBloc(
  super.initialState, {
  required this.individualRepository,
  required this.householdRepository,
  required this.householdMemberRepository,
  required this.projectBeneficiaryRepository,
  required this.taskDataRepository,
  required this.beneficiaryType,
}) {
  on(_handleSaveAddress);
  on(_handleSaveHouseDetails);
  on(_handleSaveHouseholdDetails);
  on(_handleSaveIndividualDetails);
  on(_handleCreate);
  on(_handleUpdateHousehold);
  on(_handleUpdateIndividual);
  on(_handleAddMember);
  on(_handleSummary);
}