RatioConverter constructor
const
RatioConverter(
- String id, {
- required double r,
- ConversionFn? f,
- ConversionFn? b,
Creates a numerical converter that can be expressed as a ratio to the base unit.
Implementation
const RatioConverter(
String id, {
required double r,
ConversionFn? f,
ConversionFn? b,
}) : ratio = r,
forward = f,
reverse = b,
super(id);