carbsGram property

int get carbsGram

Calculates the total grams of carbohydrates based on the percentage and total calorie target.

Implementation

int get carbsGram => caloriesTarget * carbsPercentage / 100 ~/ 4;