Quantity.fromOnes constructor

Quantity.fromOnes(
  1. Rational ones
)

Creates a Quantity representing the specified number of ones.

Implementation

factory Quantity.fromOnes(Rational ones) =>
    Quantity.fromUnits(QuantityUnit.one, ones);