whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. TResult? saveAddress(
    1. AddressModel model
    )?,
  2. TResult? saveHouseDetails(
    1. HouseholdModel model
    )?,
  3. TResult? saveHouseholdDetails(
    1. HouseholdModel household,
    2. DateTime registrationDate
    )?,
  4. TResult? saveIndividualDetails(
    1. IndividualModel model,
    2. bool isHeadOfHousehold
    )?,
  5. TResult? addMember(
    1. HouseholdModel householdModel,
    2. IndividualModel individualModel,
    3. AddressModel addressModel,
    4. String userUuid,
    5. String projectId,
    6. String? tag,
    7. BeneficiaryType beneficiaryType,
    )?,
  6. TResult? updateHouseholdDetails(
    1. HouseholdModel household,
    2. AddressModel? addressModel,
    3. String? tag
    )?,
  7. TResult? updateIndividualDetails(
    1. IndividualModel model,
    2. String? tag,
    3. HouseholdModel householdModel,
    4. AddressModel addressModel,
    )?,
  8. TResult? create(
    1. String userUuid,
    2. String projectId,
    3. BoundaryModel boundary,
    4. String? tag,
    5. bool navigateToSummary,
    )?,
  9. TResult? summary(
    1. String userUuid,
    2. String projectId,
    3. BoundaryModel boundary,
    4. String? tag,
    5. bool navigateToSummary,
    )?,
  10. TResult? validate(
    1. String tag
    )?,
})
inherited

Implementation

@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  TResult? Function(AddressModel model)? saveAddress,
  TResult? Function(HouseholdModel model)? saveHouseDetails,
  TResult? Function(HouseholdModel household, DateTime registrationDate)?
      saveHouseholdDetails,
  TResult? Function(IndividualModel model, bool isHeadOfHousehold)?
      saveIndividualDetails,
  TResult? Function(
          HouseholdModel householdModel,
          IndividualModel individualModel,
          AddressModel addressModel,
          String userUuid,
          String projectId,
          String? tag,
          BeneficiaryType beneficiaryType)?
      addMember,
  TResult? Function(
          HouseholdModel household, AddressModel? addressModel, String? tag)?
      updateHouseholdDetails,
  TResult? Function(IndividualModel model, String? tag,
          HouseholdModel householdModel, AddressModel addressModel)?
      updateIndividualDetails,
  TResult? Function(String userUuid, String projectId, BoundaryModel boundary,
          String? tag, bool navigateToSummary)?
      create,
  TResult? Function(String userUuid, String projectId, BoundaryModel boundary,
          String? tag, bool navigateToSummary)?
      summary,
  TResult? Function(String tag)? validate,
}) =>
    throw _privateConstructorUsedError;