discontinuedPackage length_unit has been discontinued and replaced by dimension.

toPXLength property

Length get toPXLength

Implementation

Length get toPXLength {
  return Length(this.toDouble());
}