whenOrNull<TResult extends Object?> method
TResult?
whenOrNull<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
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<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,
}) =>
throw _privateConstructorUsedError;