Weight.fromImperialTons constructor

Weight.fromImperialTons(
  1. Rational imperialTons
)

Creates a Weight representing the specified number of imperialTons.

Implementation

factory Weight.fromImperialTons(Rational imperialTons) =>
    Weight.fromUnits(WeightUnit.imperialTon, imperialTons);