Length.fromYards constructor

Length.fromYards(
  1. Rational yards
)

Creates a Length representing the specified number of yards.

Implementation

factory Length.fromYards(Rational yards) =>
    Length.fromUnits(LengthUnit.yard, yards);