energyServing property

  1. @Deprecated('Use getComputedKJ instead')
double? get energyServing

Energy, in kJ, per serving of product as sold

Implementation

@Deprecated('Use getComputedKJ instead')
double? get energyServing => getComputedKJ(PerSize.serving);
  1. @Deprecated('Use setValue instead')
set energyServing (double? value)

Implementation

@Deprecated('Use setValue instead')
set energyServing(final double? value) =>
    setValue(Nutrient.energyKJ, PerSize.serving, value);