coerceValueToUnit method

double coerceValueToUnit(
  1. String unit,
  2. [String? name]
)

A shorthand for coerceValue with only one numerator unit.

Implementation

double coerceValueToUnit(String unit, [String? name]) =>
    coerceValue([unit], [], name);