when<TResult extends Object?> method
TResult
when<TResult extends Object?>({
- required TResult create(
- AddressModel? addressModel,
- HouseholdModel? householdModel,
- IndividualModel? individualModel,
- ProjectBeneficiaryModel? projectBeneficiaryModel,
- DateTime? registrationDate,
- String? searchQuery,
- bool loading,
- bool isHeadOfHousehold,
- required TResult editHousehold(
- AddressModel addressModel,
- HouseholdModel householdModel,
- List<
IndividualModel> individualModel, - DateTime registrationDate,
- ProjectBeneficiaryModel? projectBeneficiaryModel,
- bool loading,
- IndividualModel? headOfHousehold,
- required TResult editIndividual(
- HouseholdModel householdModel,
- IndividualModel individualModel,
- AddressModel addressModel,
- ProjectBeneficiaryModel? projectBeneficiaryModel,
- bool loading,
- required TResult addMember(
- AddressModel addressModel,
- HouseholdModel householdModel,
- bool loading
- required TResult persisted(
- HouseholdModel householdModel,
- IndividualModel? individualModel,
- ProjectBeneficiaryModel? projectBeneficiaryModel,
- DateTime? registrationDate,
- AddressModel? addressModel,
- bool loading,
- bool isEdit,
- bool isHeadOfHousehold,
- required TResult summary(
- HouseholdModel? householdModel,
- IndividualModel? individualModel,
- ProjectBeneficiaryModel? projectBeneficiaryModel,
- DateTime? registrationDate,
- AddressModel? addressModel,
- bool loading,
- bool isHeadOfHousehold,
inherited
Implementation
@optionalTypeArgs
TResult when<TResult extends Object?>({
required TResult Function(
AddressModel? addressModel,
HouseholdModel? householdModel,
IndividualModel? individualModel,
ProjectBeneficiaryModel? projectBeneficiaryModel,
DateTime? registrationDate,
String? searchQuery,
bool loading,
bool isHeadOfHousehold)
create,
required TResult Function(
AddressModel addressModel,
HouseholdModel householdModel,
List<IndividualModel> individualModel,
DateTime registrationDate,
ProjectBeneficiaryModel? projectBeneficiaryModel,
bool loading,
IndividualModel? headOfHousehold)
editHousehold,
required TResult Function(
HouseholdModel householdModel,
IndividualModel individualModel,
AddressModel addressModel,
ProjectBeneficiaryModel? projectBeneficiaryModel,
bool loading)
editIndividual,
required TResult Function(AddressModel addressModel,
HouseholdModel householdModel, bool loading)
addMember,
required TResult Function(
bool navigateToRoot,
HouseholdModel householdModel,
IndividualModel? individualModel,
ProjectBeneficiaryModel? projectBeneficiaryModel,
DateTime? registrationDate,
AddressModel? addressModel,
bool loading,
bool isEdit,
bool isHeadOfHousehold)
persisted,
required TResult Function(
bool navigateToRoot,
HouseholdModel? householdModel,
IndividualModel? individualModel,
ProjectBeneficiaryModel? projectBeneficiaryModel,
DateTime? registrationDate,
AddressModel? addressModel,
bool loading,
bool isHeadOfHousehold)
summary,
}) =>
throw _privateConstructorUsedError;