Length.fromKilometres constructor

const Length.fromKilometres(
  1. double kilometres
)

Returns a new Length object from the number of kilometres.

Implementation

const Length.fromKilometres(double kilometres)
    : super(kilometres * _nanometresPerKilometre);