Hypo and hypertension controllers

This commit is contained in:
2024-01-31 16:29:18 +03:00
parent cdcddc96c5
commit defb82b4f3

View File

@@ -49,6 +49,8 @@ class MyProfileLoadedState extends MyProfileState {
this.favoriteFormController,
this.unfavoriteFormController,
this.additionalFormController,
this.hypoFormController,
this.hyperFormController,
this.circumferences})
: super(myProfileModelObj: null);
@@ -83,7 +85,8 @@ class MyProfileLoadedState extends MyProfileState {
String? token;
String? selectedCountry;
String? selectedCity;
String? hypoFormController;
String? hyperFormController;
@override
List<Object?> get props => [
myProfileModelObj,
@@ -116,6 +119,8 @@ class MyProfileLoadedState extends MyProfileState {
additionalFormController,
selectedCountry,
selectedCity,
hypoFormController,
hyperFormController,
];
MyProfileLoadedState copyWith({
MyProfileModel? myProfileModelObj,
@@ -144,11 +149,13 @@ class MyProfileLoadedState extends MyProfileState {
TextEditingController? favoriteFormController,
TextEditingController? unfavoriteFormController,
TextEditingController? additionalFormController,
TextEditingController? downPressureFormController,
TextEditingController? upPressureFormController,
String? token,
String? selectedCountry,
String? selectedCity,
TextEditingController? downPressureFormController,
TextEditingController? upPressureFormController,
String? hypoFormController,
String? hyperFormController,
}) {
return MyProfileLoadedState(
myProfileModelObj: myProfileModelObj ?? this.myProfileModelObj,
@@ -197,6 +204,8 @@ class MyProfileLoadedState extends MyProfileState {
token: token ?? this.token,
selectedCountry: selectedCountry ?? this.selectedCountry,
selectedCity: selectedCity ?? this.selectedCity,
hypoFormController: hypoFormController ?? this.hypoFormController,
hyperFormController: hyperFormController ?? this.hyperFormController,
);
}
}