ValidatedQuantity.fromPair constructor

ValidatedQuantity.fromPair(
  1. Pair pair
)

Implementation

ValidatedQuantity.fromPair(Pair pair)
    : super(value: pair.value, unit: pair.unit.isNotEmpty ? pair.unit : '1');