Length.fromYards constructor
Length.fromYards(
- Rational yards
Creates a Length representing the specified number of yards
.
Implementation
factory Length.fromYards(Rational yards) =>
Length.fromUnits(LengthUnit.yard, yards);