getUnit method

  1. @Deprecated('Use nutrient.typicalUnit instead')
Unit? getUnit(
  1. Nutrient nutrient
)

Returns the default Unit of that nutrient.

Implementation

@Deprecated('Use nutrient.typicalUnit instead')
Unit? getUnit(final Nutrient nutrient) => nutrient.typicalUnit;