Length.fromYards constructor

Length.fromYards(
  1. Decimal yards
)

Creates a Length representing the specified number of yards.

Implementation

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