QuantityTransformation constructor

const QuantityTransformation({
  1. String pattern = defaultValuePattern,
  2. Set<QuantityUnit> permissibleValueUnits = QuantityUnits.all,
})

Creates a QuantityTransformation that will format values using the specified pattern, only using permissibleValueUnits.

Implementation

const QuantityTransformation({
  this.pattern = defaultValuePattern,
  this.permissibleValueUnits = QuantityUnits.all,
});