Weight.fromPounds constructor

Weight.fromPounds(
  1. Rational pounds
)

Creates a Weight representing the specified number of pounds.

Implementation

factory Weight.fromPounds(Rational pounds) =>
    Weight.fromUnits(WeightUnit.pound, pounds);