Length.fromMiles constructor

const Length.fromMiles(
  1. double miles
)

Returns a new Length object from the number of miles.

Implementation

const Length.fromMiles(double miles) : super(miles * _nanometresPerMile);