Length.fromMetres constructor

const Length.fromMetres(
  1. double metres
)

Returns a new Length object from the number of metres.

Implementation

const Length.fromMetres(double metres) : super(metres * _nanometresPerMetre);