Weight.fromOunces constructor
Weight.fromOunces(
- Rational ounces
Creates a Weight representing the specified number of ounces
.
Implementation
factory Weight.fromOunces(Rational ounces) =>
Weight.fromUnits(WeightUnit.ounce, ounces);