BeneficiaryRegistrationState class

Implementers
Annotations
  • @freezed

Constructors

BeneficiaryRegistrationState.addMember({required AddressModel addressModel, required HouseholdModel householdModel, @Default(false) bool loading})
const
factory
BeneficiaryRegistrationState.create({AddressModel? addressModel, HouseholdModel? householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, String? searchQuery, @Default(false) bool loading, @Default(false) bool isHeadOfHousehold})
const
factory
BeneficiaryRegistrationState.editHousehold({required AddressModel addressModel, required HouseholdModel householdModel, required List<IndividualModel> individualModel, required DateTime registrationDate, ProjectBeneficiaryModel? projectBeneficiaryModel, @Default(false) bool loading, IndividualModel? headOfHousehold})
const
factory
BeneficiaryRegistrationState.editIndividual({required HouseholdModel householdModel, required IndividualModel individualModel, required AddressModel addressModel, ProjectBeneficiaryModel? projectBeneficiaryModel, @Default(false) bool loading})
const
factory
BeneficiaryRegistrationState.persisted({@Default(true) bool navigateToRoot, required HouseholdModel householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, @Default(false) bool loading, @Default(false) bool isEdit, @Default(false) bool isHeadOfHousehold})
const
factory
BeneficiaryRegistrationState.summary({@Default(true) bool navigateToRoot, HouseholdModel? householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, @Default(false) bool loading, @Default(false) bool isHeadOfHousehold})
const
factory

Properties

addressModel → AddressModel?
no setterinherited
copyWith → $BeneficiaryRegistrationStateCopyWith<BeneficiaryRegistrationState>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
householdModel HouseholdModel?
no setterinherited
loading bool
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult create(BeneficiaryRegistrationCreateState value), required TResult editHousehold(BeneficiaryRegistrationEditHouseholdState value), required TResult editIndividual(BeneficiaryRegistrationEditIndividualState value), required TResult addMember(BeneficiaryRegistrationAddMemberState value), required TResult persisted(BeneficiaryRegistrationPersistedState value), required TResult summary(BeneficiaryRegistrationSummaryState value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? create(BeneficiaryRegistrationCreateState value)?, TResult? editHousehold(BeneficiaryRegistrationEditHouseholdState value)?, TResult? editIndividual(BeneficiaryRegistrationEditIndividualState value)?, TResult? addMember(BeneficiaryRegistrationAddMemberState value)?, TResult? persisted(BeneficiaryRegistrationPersistedState value)?, TResult? summary(BeneficiaryRegistrationSummaryState value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult create(BeneficiaryRegistrationCreateState value)?, TResult editHousehold(BeneficiaryRegistrationEditHouseholdState value)?, TResult editIndividual(BeneficiaryRegistrationEditIndividualState value)?, TResult addMember(BeneficiaryRegistrationAddMemberState value)?, TResult persisted(BeneficiaryRegistrationPersistedState value)?, TResult summary(BeneficiaryRegistrationSummaryState value)?, required TResult orElse()}) → TResult
inherited
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(bool navigateToRoot, HouseholdModel householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, bool loading, bool isEdit, bool isHeadOfHousehold)?, TResult summary(bool navigateToRoot, HouseholdModel? householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, bool loading, bool isHeadOfHousehold)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
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(bool navigateToRoot, HouseholdModel householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, bool loading, bool isEdit, bool isHeadOfHousehold), required TResult summary(bool navigateToRoot, HouseholdModel? householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, bool loading, bool isHeadOfHousehold)}) → TResult
inherited
whenOrNull<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(bool navigateToRoot, HouseholdModel householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, bool loading, bool isEdit, bool isHeadOfHousehold)?, TResult? summary(bool navigateToRoot, HouseholdModel? householdModel, IndividualModel? individualModel, ProjectBeneficiaryModel? projectBeneficiaryModel, DateTime? registrationDate, AddressModel? addressModel, bool loading, bool isHeadOfHousehold)?}) → TResult?
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited