forked from eatvio/eatvio_app
refactor(diary) Prepared front-end methods for API intergration
This commit is contained in:
@@ -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,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user