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