Weight.fromOunces constructor

Weight.fromOunces(
  1. Rational ounces
)

Creates a Weight representing the specified number of ounces.

Implementation

factory Weight.fromOunces(Rational ounces) =>
    Weight.fromUnits(WeightUnit.ounce, ounces);