recalculateToLastSavedUOM method
Implementation
double? recalculateToLastSavedUOM({
UnitOfMeasuresDto? currentUOM,
double quantity = 0,
}) {
if (currentUOM == null) return null;
return double.tryParse(
currentUOM
.convertQuantity(newUnit: currentUOM, value: quantity)
.toStringAsFixed(3),
);
}