mapOrNull<TResult extends Object?> method

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

Implementation

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