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