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