toPaddingValues

fun Insets.toPaddingValues(): PaddingValues

Converts a Insets to PaddingValues. If the receiver is a JBInsets instance, this function delegates to the specific toPaddingValues for it, which is scaling-aware.


fun JBInsets.toPaddingValues(): PaddingValues

Converts a JBInsets to PaddingValues, in a scaling-aware way. This means that the resulting PaddingValues will be constructed from the JBInsets.unscaled values, treated as Dp. This avoids double scaling.