Mass.fromMilligrams constructor

const Mass.fromMilligrams(
  1. double milligrams
)

Returns a new Mass object from the number of milligrams.

Implementation

const Mass.fromMilligrams(double milligrams)
    : super(milligrams * _nanogramsPerMilligram);