convertValueToUnit method

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

A shorthand for convertValue with only one numerator unit.

Implementation

double convertValueToUnit(String unit, [String? name]) =>
    convertValue([unit], [], name);