Weight.fromGigatonnes constructor

Weight.fromGigatonnes(
  1. Rational gigatonnes
)

Creates a Weight representing the specified number of gigatonnes.

Implementation

factory Weight.fromGigatonnes(Rational gigatonnes) =>
    Weight.fromUnits(WeightUnit.gigatonne, gigatonnes);