Skip to content

dp

val Int.dp: Int

Converts this Int to a Dp value. Provided so measurements read naturally at call sites, e.g. 16.dp, mirroring Compose's Dp API even though no unit conversion currently happens.