maybeWhen<TResult extends Object?> method

  1. @optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  1. TResult deleteHousehold(
    1. String projectId,
    2. HouseholdModel householdModel,
    3. List<IndividualModel> members,
    4. ProjectBeneficiaryModel projectBeneficiaryModel,
    5. BeneficiaryType projectBeneficiaryType,
    )?,
  2. TResult deleteIndividual(
    1. String projectId,
    2. HouseholdModel householdModel,
    3. IndividualModel individualModel,
    4. BeneficiaryType projectBeneficiaryType,
    )?,
  3. TResult setAsHead(
    1. String projectId,
    2. IndividualModel individualModel,
    3. HouseholdModel householdModel,
    4. BeneficiaryType projectBeneficiaryType,
    )?,
  4. TResult selectedIndividual(
    1. IndividualModel individualModel
    )?,
  5. TResult reload(
    1. String projectId,
    2. BeneficiaryType projectBeneficiaryType
    )?,
  6. required TResult orElse(),
})
inherited

Implementation

@optionalTypeArgs
TResult maybeWhen<TResult extends Object?>({
  TResult Function(
          String projectId,
          HouseholdModel householdModel,
          List<IndividualModel> members,
          ProjectBeneficiaryModel projectBeneficiaryModel,
          BeneficiaryType projectBeneficiaryType)?
      deleteHousehold,
  TResult Function(
          String projectId,
          HouseholdModel householdModel,
          IndividualModel individualModel,
          BeneficiaryType projectBeneficiaryType)?
      deleteIndividual,
  TResult Function(
          String projectId,
          IndividualModel individualModel,
          HouseholdModel householdModel,
          BeneficiaryType projectBeneficiaryType)?
      setAsHead,
  TResult Function(IndividualModel individualModel)? selectedIndividual,
  TResult Function(String projectId, BeneficiaryType projectBeneficiaryType)?
      reload,
  required TResult orElse(),
}) =>
    throw _privateConstructorUsedError;