map<TResult extends Object?> method

  1. @optionalTypeArgs
TResult map<TResult extends Object?>({
  1. required TResult saveAddress(
    1. BeneficiaryRegistrationSaveAddressEvent value
    ),
  2. required TResult saveHouseDetails(
    1. BeneficiaryRegistrationSaveHouseDetailsEvent value
    ),
  3. required TResult saveHouseholdDetails(
    1. BeneficiaryRegistrationSaveHouseholdDetailsEvent value
    ),
  4. required TResult saveIndividualDetails(
    1. BeneficiaryRegistrationSaveIndividualDetailsEvent value
    ),
  5. required TResult addMember(
    1. BeneficiaryRegistrationAddMemberEvent value
    ),
  6. required TResult updateHouseholdDetails(
    1. BeneficiaryRegistrationUpdateHouseholdDetailsEvent value
    ),
  7. required TResult updateIndividualDetails(
    1. BeneficiaryRegistrationUpdateIndividualDetailsEvent value
    ),
  8. required TResult create(
    1. BeneficiaryRegistrationCreateEvent value
    ),
  9. required TResult summary(
    1. BeneficiaryRegistrationSummaryEvent value
    ),
  10. required TResult validate(
    1. BeneficiaryRegistrationTagEvent value
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult map<TResult extends Object?>({
  required TResult Function(BeneficiaryRegistrationSaveAddressEvent value)
      saveAddress,
  required TResult Function(
          BeneficiaryRegistrationSaveHouseDetailsEvent value)
      saveHouseDetails,
  required TResult Function(
          BeneficiaryRegistrationSaveHouseholdDetailsEvent value)
      saveHouseholdDetails,
  required TResult Function(
          BeneficiaryRegistrationSaveIndividualDetailsEvent value)
      saveIndividualDetails,
  required TResult Function(BeneficiaryRegistrationAddMemberEvent value)
      addMember,
  required TResult Function(
          BeneficiaryRegistrationUpdateHouseholdDetailsEvent value)
      updateHouseholdDetails,
  required TResult Function(
          BeneficiaryRegistrationUpdateIndividualDetailsEvent value)
      updateIndividualDetails,
  required TResult Function(BeneficiaryRegistrationCreateEvent value) create,
  required TResult Function(BeneficiaryRegistrationSummaryEvent value)
      summary,
  required TResult Function(BeneficiaryRegistrationTagEvent value) validate,
}) =>
    throw _privateConstructorUsedError;