BeneficiaryRegistrationBloc constructor
BeneficiaryRegistrationBloc(
- BeneficiaryRegistrationState initialState, {
- required IndividualDataRepository individualRepository,
- required HouseholdDataRepository householdRepository,
- required HouseholdMemberDataRepository householdMemberRepository,
- required ProjectBeneficiaryDataRepository projectBeneficiaryRepository,
- required TaskDataRepository taskDataRepository,
- 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);
}