Quantity.fromOnes constructor
Quantity.fromOnes(
- Rational ones
Creates a Quantity representing the specified number of ones
.
Implementation
factory Quantity.fromOnes(Rational ones) =>
Quantity.fromUnits(QuantityUnit.one, ones);