Weight.fromNanograms constructor
Weight.fromNanograms(
- Rational nanograms
Creates a Weight representing the specified number of nanograms
.
Implementation
factory Weight.fromNanograms(Rational nanograms) =>
Weight.fromUnits(WeightUnit.nanogram, nanograms);