convert method

  1. @override
void convert(
  1. ANGLE name,
  2. double? value
)
override

Converts a unit with a specific name (e.g. ANGLE.degree) and value to all other units

Implementation

@override
void convert(ANGLE name, double? value) {
  super.convert(name, value);
  if (value == null) return;
  for (var i = 0; i < ANGLE.values.length; i++) {
    unitList[i].value = unitConversion.getByName(ANGLE.values.elementAt(i))?.value;
    unitList[i].stringValue = mantissaCorrection(unitList[i].value!, significantFigures, removeTrailingZeros);
  }
}