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