refactor(diary) Prepared front-end methods for API intergration

This commit is contained in:
2024-02-21 12:18:25 +03:00
parent 6d04d1a688
commit 65c465ab9d
5 changed files with 103 additions and 271 deletions

View File

@@ -9,9 +9,11 @@ class DiaryEditModel extends Equatable {
DiaryEditModel({this.mealList = const []});
List<SelectionPopupModel> mealList;
DiaryEditModel copyWith() {
DiaryEditModel copyWith({
List<SelectionPopupModel>? mealList,
}) {
return DiaryEditModel(
mealList: mealList,
mealList: mealList ?? this.mealList,
);
}