Length.fromYards constructor

const Length.fromYards(
  1. double yards
)

Returns a new Length object from the number of yards.

Implementation

const Length.fromYards(double yards) : super(yards * _nanometresPerYard);