when<TResult extends Object?> method

  1. @optionalTypeArgs
TResult when<TResult extends Object?>({
  1. required TResult create(
    1. AddressModel? addressModel,
    2. HouseholdModel? householdModel,
    3. IndividualModel? individualModel,
    4. ProjectBeneficiaryModel? projectBeneficiaryModel,
    5. DateTime? registrationDate,
    6. String? searchQuery,
    7. bool loading,
    8. bool isHeadOfHousehold,
    ),
  2. required TResult editHousehold(
    1. AddressModel addressModel,
    2. HouseholdModel householdModel,
    3. List<IndividualModel> individualModel,
    4. DateTime registrationDate,
    5. ProjectBeneficiaryModel? projectBeneficiaryModel,
    6. bool loading,
    7. IndividualModel? headOfHousehold,
    ),
  3. required TResult editIndividual(
    1. HouseholdModel householdModel,
    2. IndividualModel individualModel,
    3. AddressModel addressModel,
    4. ProjectBeneficiaryModel? projectBeneficiaryModel,
    5. bool loading,
    ),
  4. required TResult addMember(
    1. AddressModel addressModel,
    2. HouseholdModel householdModel,
    3. bool loading
    ),
  5. required TResult persisted(
    1. bool navigateToRoot,
    2. HouseholdModel householdModel,
    3. IndividualModel? individualModel,
    4. ProjectBeneficiaryModel? projectBeneficiaryModel,
    5. DateTime? registrationDate,
    6. AddressModel? addressModel,
    7. bool loading,
    8. bool isEdit,
    9. bool isHeadOfHousehold,
    ),
  6. required TResult summary(
    1. bool navigateToRoot,
    2. HouseholdModel? householdModel,
    3. IndividualModel? individualModel,
    4. ProjectBeneficiaryModel? projectBeneficiaryModel,
    5. DateTime? registrationDate,
    6. AddressModel? addressModel,
    7. bool loading,
    8. bool isHeadOfHousehold,
    ),
})
inherited

Implementation

@optionalTypeArgs
TResult when<TResult extends Object?>({
  required TResult Function(
          AddressModel? addressModel,
          HouseholdModel? householdModel,
          IndividualModel? individualModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          DateTime? registrationDate,
          String? searchQuery,
          bool loading,
          bool isHeadOfHousehold)
      create,
  required TResult Function(
          AddressModel addressModel,
          HouseholdModel householdModel,
          List<IndividualModel> individualModel,
          DateTime registrationDate,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          bool loading,
          IndividualModel? headOfHousehold)
      editHousehold,
  required TResult Function(
          HouseholdModel householdModel,
          IndividualModel individualModel,
          AddressModel addressModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          bool loading)
      editIndividual,
  required TResult Function(AddressModel addressModel,
          HouseholdModel householdModel, bool loading)
      addMember,
  required TResult Function(
          bool navigateToRoot,
          HouseholdModel householdModel,
          IndividualModel? individualModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          DateTime? registrationDate,
          AddressModel? addressModel,
          bool loading,
          bool isEdit,
          bool isHeadOfHousehold)
      persisted,
  required TResult Function(
          bool navigateToRoot,
          HouseholdModel? householdModel,
          IndividualModel? individualModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          DateTime? registrationDate,
          AddressModel? addressModel,
          bool loading,
          bool isHeadOfHousehold)
      summary,
}) =>
    throw _privateConstructorUsedError;