discontinuedPackage length_unit has been discontinued and replaced by dimension.

percentToAlignmentValue method

double percentToAlignmentValue()

Implementation

double percentToAlignmentValue() {
  return this / 100 * 2 - 1.0;
}