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