when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult saveAddress(
- AddressModel model
- required TResult saveHouseDetails(
- HouseholdModel model
- required TResult saveHouseholdDetails(
- HouseholdModel household,
- DateTime registrationDate
- required TResult saveIndividualDetails(
- IndividualModel model,
- bool isHeadOfHousehold
- required TResult addMember(
- HouseholdModel householdModel,
- IndividualModel individualModel,
- AddressModel addressModel,
- String userUuid,
- String projectId,
- String? tag,
- BeneficiaryType beneficiaryType,
- required TResult updateHouseholdDetails(
- HouseholdModel household,
- AddressModel? addressModel,
- String? tag
- required TResult updateIndividualDetails(
- IndividualModel model,
- String? tag,
- HouseholdModel householdModel,
- AddressModel addressModel,
- required TResult create(),
- required TResult summary(),
- required TResult validate(
- 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;