writeMeal method
Implementation
Future<bool> writeMeal({
double? caloriesConsumed,
double? carbohydrates,
double? protein,
double? fatTotal,
String? name,
required meal_types.MealType mealType,
required DateTime start,
required DateTime end,
}) {
return health.writeMeal(
startTime: start,
endTime: end,
caloriesConsumed: caloriesConsumed,
carbohydrates: carbohydrates,
protein: protein,
fatTotal: fatTotal,
name: name,
mealType: mealType.toHealthMealType(),
);
}