i want to create 4 new lists from a single list. i created this, in this if i do some changes in a single list it changed to all of them. i want to manipulate each list individually.
List<DietModel> foodList = [];
List<DietModel> breakFastList = [];
List<DietModel> lunchList = [];
List<DietModel> snacksList = [];
List<DietModel> dinnerList = [];
void getFoodList() async {
foodList = await _dietPageRepositoryImpl.getAll();
breakFastList = foodList;
lunchList = foodList;
snacksList = foodList;
dinnerList = foodList;
}