BeneficiaryRegistrationEvent class
Constructors
-
BeneficiaryRegistrationEvent.addMember({required HouseholdModel householdModel, required IndividualModel individualModel, required AddressModel addressModel, required String userUuid, required String projectId, String? tag, required BeneficiaryType beneficiaryType})
-
const
factory
-
BeneficiaryRegistrationEvent.create({required String userUuid, required String projectId, required BoundaryModel boundary, String? tag, @Default(true) bool navigateToSummary})
-
const
factory
-
BeneficiaryRegistrationEvent.saveAddress(AddressModel model)
-
const
factory
-
BeneficiaryRegistrationEvent.saveHouseDetails({required HouseholdModel model})
-
const
factory
-
BeneficiaryRegistrationEvent.saveHouseholdDetails({required HouseholdModel household, required DateTime registrationDate})
-
const
factory
-
BeneficiaryRegistrationEvent.saveIndividualDetails({required IndividualModel model, @Default(false) bool isHeadOfHousehold})
-
const
factory
-
BeneficiaryRegistrationEvent.summary({required String userUuid, required String projectId, required BoundaryModel boundary, String? tag, @Default(true) bool navigateToSummary})
-
const
factory
-
BeneficiaryRegistrationEvent.updateHouseholdDetails({required HouseholdModel household, AddressModel? addressModel, String? tag})
-
const
factory
-
BeneficiaryRegistrationEvent.updateIndividualDetails({required IndividualModel model, String? tag, required HouseholdModel householdModel, required AddressModel addressModel})
-
const
factory
-
BeneficiaryRegistrationEvent.validate({required String tag})
-
const
factory
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
map<TResult extends Object?>({required TResult saveAddress(BeneficiaryRegistrationSaveAddressEvent value), required TResult saveHouseDetails(BeneficiaryRegistrationSaveHouseDetailsEvent value), required TResult saveHouseholdDetails(BeneficiaryRegistrationSaveHouseholdDetailsEvent value), required TResult saveIndividualDetails(BeneficiaryRegistrationSaveIndividualDetailsEvent value), required TResult addMember(BeneficiaryRegistrationAddMemberEvent value), required TResult updateHouseholdDetails(BeneficiaryRegistrationUpdateHouseholdDetailsEvent value), required TResult updateIndividualDetails(BeneficiaryRegistrationUpdateIndividualDetailsEvent value), required TResult create(BeneficiaryRegistrationCreateEvent value), required TResult summary(BeneficiaryRegistrationSummaryEvent value), required TResult validate(BeneficiaryRegistrationTagEvent value)})
→ TResult
-
inherited
-
mapOrNull<TResult extends Object?>({TResult? saveAddress(BeneficiaryRegistrationSaveAddressEvent value)?, TResult? saveHouseDetails(BeneficiaryRegistrationSaveHouseDetailsEvent value)?, TResult? saveHouseholdDetails(BeneficiaryRegistrationSaveHouseholdDetailsEvent value)?, TResult? saveIndividualDetails(BeneficiaryRegistrationSaveIndividualDetailsEvent value)?, TResult? addMember(BeneficiaryRegistrationAddMemberEvent value)?, TResult? updateHouseholdDetails(BeneficiaryRegistrationUpdateHouseholdDetailsEvent value)?, TResult? updateIndividualDetails(BeneficiaryRegistrationUpdateIndividualDetailsEvent value)?, TResult? create(BeneficiaryRegistrationCreateEvent value)?, TResult? summary(BeneficiaryRegistrationSummaryEvent value)?, TResult? validate(BeneficiaryRegistrationTagEvent value)?})
→ TResult?
-
inherited
-
maybeMap<TResult extends Object?>({TResult saveAddress(BeneficiaryRegistrationSaveAddressEvent value)?, TResult saveHouseDetails(BeneficiaryRegistrationSaveHouseDetailsEvent value)?, TResult saveHouseholdDetails(BeneficiaryRegistrationSaveHouseholdDetailsEvent value)?, TResult saveIndividualDetails(BeneficiaryRegistrationSaveIndividualDetailsEvent value)?, TResult addMember(BeneficiaryRegistrationAddMemberEvent value)?, TResult updateHouseholdDetails(BeneficiaryRegistrationUpdateHouseholdDetailsEvent value)?, TResult updateIndividualDetails(BeneficiaryRegistrationUpdateIndividualDetailsEvent value)?, TResult create(BeneficiaryRegistrationCreateEvent value)?, TResult summary(BeneficiaryRegistrationSummaryEvent value)?, TResult validate(BeneficiaryRegistrationTagEvent value)?, required TResult orElse()})
→ TResult
-
inherited
-
maybeWhen<TResult extends Object?>({TResult saveAddress(AddressModel model)?, TResult saveHouseDetails(HouseholdModel model)?, TResult saveHouseholdDetails(HouseholdModel household, DateTime registrationDate)?, TResult saveIndividualDetails(IndividualModel model, bool isHeadOfHousehold)?, TResult addMember(HouseholdModel householdModel, IndividualModel individualModel, AddressModel addressModel, String userUuid, String projectId, String? tag, BeneficiaryType beneficiaryType)?, TResult updateHouseholdDetails(HouseholdModel household, AddressModel? addressModel, String? tag)?, TResult updateIndividualDetails(IndividualModel model, String? tag, HouseholdModel householdModel, AddressModel addressModel)?, TResult create(String userUuid, String projectId, BoundaryModel boundary, String? tag, bool navigateToSummary)?, TResult summary(String userUuid, String projectId, BoundaryModel boundary, String? tag, bool navigateToSummary)?, TResult validate(String tag)?, required TResult orElse()})
→ TResult
-
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
when<TResult extends Object?>({required TResult saveAddress(AddressModel model), required TResult saveHouseDetails(HouseholdModel model), required TResult saveHouseholdDetails(HouseholdModel household, DateTime registrationDate), required TResult saveIndividualDetails(IndividualModel model, bool isHeadOfHousehold), required TResult addMember(HouseholdModel householdModel, IndividualModel individualModel, AddressModel addressModel, String userUuid, String projectId, String? tag, BeneficiaryType beneficiaryType), required TResult updateHouseholdDetails(HouseholdModel household, AddressModel? addressModel, String? tag), required TResult updateIndividualDetails(IndividualModel model, String? tag, HouseholdModel householdModel, AddressModel addressModel), required TResult create(String userUuid, String projectId, BoundaryModel boundary, String? tag, bool navigateToSummary), required TResult summary(String userUuid, String projectId, BoundaryModel boundary, String? tag, bool navigateToSummary), required TResult validate(String tag)})
→ TResult
-
inherited
-
whenOrNull<TResult extends Object?>({TResult? saveAddress(AddressModel model)?, TResult? saveHouseDetails(HouseholdModel model)?, TResult? saveHouseholdDetails(HouseholdModel household, DateTime registrationDate)?, TResult? saveIndividualDetails(IndividualModel model, bool isHeadOfHousehold)?, TResult? addMember(HouseholdModel householdModel, IndividualModel individualModel, AddressModel addressModel, String userUuid, String projectId, String? tag, BeneficiaryType beneficiaryType)?, TResult? updateHouseholdDetails(HouseholdModel household, AddressModel? addressModel, String? tag)?, TResult? updateIndividualDetails(IndividualModel model, String? tag, HouseholdModel householdModel, AddressModel addressModel)?, TResult? create(String userUuid, String projectId, BoundaryModel boundary, String? tag, bool navigateToSummary)?, TResult? summary(String userUuid, String projectId, BoundaryModel boundary, String? tag, bool navigateToSummary)?, TResult? validate(String tag)?})
→ TResult?
-
inherited