Weight.fromNanograms constructor

Weight.fromNanograms(
  1. Rational nanograms
)

Creates a Weight representing the specified number of nanograms.

Implementation

factory Weight.fromNanograms(Rational nanograms) =>
    Weight.fromUnits(WeightUnit.nanogram, nanograms);