when<TResult extends Object?> method

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

Implementation

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