scaleToRateUnit method

  1. @override
Temperature scaleToRateUnit(
  1. Temperature input,
  2. RateUnit rateUnit
)
override

Scales input, which is assumed to be a rated unit of measurement, so that its rate is rateUnit.

This method is irrelevant to non rated units of measurement, which can simply throw UnsupportedError.

Implementation

@override
Temperature scaleToRateUnit(Temperature input, RateUnit rateUnit) =>
    throw UnsupportedError('Cannot scale Temperature to a RateUnit');