scaleToRateUnit method
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
Length scaleToRateUnit(Length input, RateUnit rateUnit) =>
throw UnsupportedError('Cannot scale Length to a RateUnit');