dpToLength

abstract fun dpToLength(dp: Dp, lengthUnit: LengthUnit): Float

Converts an Int Dp value to LengthUnit.

Return

The value of LengthUnit.