valueInUnits method Null safety

  1. @Deprecated("Use coerceValue instead.")
num valueInUnits(
  1. List<String> newNumerators,
  2. List<String> newDenominators,
  3. [String? name]
)
@Deprecated("Use coerceValue instead.")

This has been renamed coerceValue for consistency with coerceToMatch, coerceValueToMatch, convertToMatch, and convertValueToMatch.

Implementation

@Deprecated("Use coerceValue instead.")
num valueInUnits(List<String> newNumerators, List<String> newDenominators,
        [String? name]) =>
    coerceValue(newNumerators, newDenominators, name);