LengthTransformation constructor

const LengthTransformation({
  1. String pattern = defaultValuePattern,
  2. Set<LengthUnit> permissibleValueUnits = LengthUnits.commonSi,
})

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

Implementation

const LengthTransformation({
  this.pattern = defaultValuePattern,
  this.permissibleValueUnits = LengthUnits.commonSi,
});