grams property

MassUnits grams
final

Note: kilograms are the standard MKS unit for mass, but grams is used here to generate the appropriate prefixes. Gram conversion value is set to 0.001 in order to generate the correct units.

Implementation

static final MassUnits grams =
    MassUnits('grams', 'g', 'g', 'gram', 0.001, true);