coerceValueToUnit method Null safety

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

A shorthand for coerceValue with only one numerator unit.

Implementation

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