MeasurementScale constructor

MeasurementScale({
  1. required UnitFrom unitFrom,
  2. required double valueFrom,
  3. required UnitTo unitTo,
  4. required double valueTo,
})

Scale constructor for the measurement scale of the document. @param fromUnits The unit of the valueFrom. @param valueFrom The value of the fromUnits. @param toUnits The unit of the valueTo. @param valueTo The value of the toUnits. @return Scale object.

Implementation

MeasurementScale(
    {required this.unitFrom,
    required this.valueFrom,
    required this.unitTo,
    required this.valueTo});