whenOrNull<TResult extends Object?> method

  1. @optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
  1. 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. 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. TResult? editIndividual(
    1. HouseholdModel householdModel,
    2. IndividualModel individualModel,
    3. AddressModel addressModel,
    4. ProjectBeneficiaryModel? projectBeneficiaryModel,
    5. bool loading,
    )?,
  4. TResult? addMember(
    1. AddressModel addressModel,
    2. HouseholdModel householdModel,
    3. bool loading
    )?,
  5. 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. 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? whenOrNull<TResult extends Object?>({
  TResult? Function(
          AddressModel? addressModel,
          HouseholdModel? householdModel,
          IndividualModel? individualModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          DateTime? registrationDate,
          String? searchQuery,
          bool loading,
          bool isHeadOfHousehold)?
      create,
  TResult? Function(
          AddressModel addressModel,
          HouseholdModel householdModel,
          List<IndividualModel> individualModel,
          DateTime registrationDate,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          bool loading,
          IndividualModel? headOfHousehold)?
      editHousehold,
  TResult? Function(
          HouseholdModel householdModel,
          IndividualModel individualModel,
          AddressModel addressModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          bool loading)?
      editIndividual,
  TResult? Function(AddressModel addressModel, HouseholdModel householdModel,
          bool loading)?
      addMember,
  TResult? Function(
          bool navigateToRoot,
          HouseholdModel householdModel,
          IndividualModel? individualModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          DateTime? registrationDate,
          AddressModel? addressModel,
          bool loading,
          bool isEdit,
          bool isHeadOfHousehold)?
      persisted,
  TResult? Function(
          bool navigateToRoot,
          HouseholdModel? householdModel,
          IndividualModel? individualModel,
          ProjectBeneficiaryModel? projectBeneficiaryModel,
          DateTime? registrationDate,
          AddressModel? addressModel,
          bool loading,
          bool isHeadOfHousehold)?
      summary,
}) =>
    throw _privateConstructorUsedError;