forked from eatvio/eatvio_app
fix: fix analyzer
This commit is contained in:
@@ -140,4 +140,20 @@ class DiaryCubit extends Cubit<DiaryState> {
|
||||
currentSelectedSatietyRating = value;
|
||||
emit((state as DiaryStateLoaded).copyWith(currentSelectedSatietyRating: currentSelectedSatietyRating));
|
||||
}
|
||||
|
||||
sendProductToModeration({
|
||||
required String name,
|
||||
required int energy,
|
||||
required int proteins,
|
||||
required int fats,
|
||||
required int carbohydrates,
|
||||
}) async {
|
||||
return await diaryRepository.sendProductToModeration(
|
||||
name: name,
|
||||
energy: energy,
|
||||
proteins: proteins,
|
||||
fats: fats,
|
||||
carbohydrates: carbohydrates,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user