setPassioMealPlan method
Sets the user's meal plan and updates the nutrient percentages accordingly.
Implementation
void setPassioMealPlan(PassioMealPlan mealPlan) {
// Set the new meal plan.
_mealPlan = mealPlan;
// Update the nutrient percentages based on the meal plan targets.
setCarbsPercentage(mealPlan.carbTarget);
setProteinPercentage(mealPlan.proteinTarget);
setFatPercentage(mealPlan.fatTarget);
}