Mass.fromKilograms constructor

const Mass.fromKilograms(
  1. double kilograms
)

Returns a new Mass object from the number of kilograms.

Implementation

const Mass.fromKilograms(double kilograms)
    : super(kilograms * _nanogramsPerKilogram);