Length.fromInches constructor

Length.fromInches(
  1. Rational inches
)

Creates a Length representing the specified number of inches.

Implementation

factory Length.fromInches(Rational inches) =>
    Length.fromUnits(LengthUnit.inch, inches);