ReciprocalOfMolarMass constructor
ReciprocalOfMolarMass({})
Class for the reciprocal of molar mass conversions, e.g. if you want to convert 1 mole per gram to moles per milligram:
var reciprocalOfMolarMass = MolarMass(removeTrailingZeros: false);
reciprocalOfMolarMass.convert(Unit(RECIPROCAL_OF_MOLAR_MASS.molesPerGram, value: 1));
print(RECIPROCAL_OF_MOLAR_MASS.molesPerMilligram);
Implementation
ReciprocalOfMolarMass(
{super.significantFigures,
super.removeTrailingZeros,
super.useScientificNotation,
name})
: assert(_mapSymbols.length == RECIPROCAL_OF_MOLAR_MASS.values.length),
super(
name: name ?? PROPERTY.reciprocalofmolarmass,
numeratorProperty: getPropertyFromEnum(
RECIPROCAL_OF_MOLAR_MASS.values[0].numerator)!,
denominatorProperty: getPropertyFromEnum(
RECIPROCAL_OF_MOLAR_MASS.values[0].denominator)!,
mapSymbols: _mapSymbols);