toPaddingValues

@Composable()
inline fun WindowInsets.Type.toPaddingValues(start: Boolean = true, top: Boolean = true, end: Boolean = true, bottom: Boolean = true, additionalHorizontal: Dp = 0.dp, additionalVertical: Dp = 0.dp): PaddingValues

Returns the current insets converted into a PaddingValues.

Parameters

start

Whether to apply the inset on the start dimension.

top

Whether to apply the inset on the top dimension.

end

Whether to apply the inset on the end dimension.

bottom

Whether to apply the inset on the bottom dimension.

additionalHorizontal

Value to add to the start and end dimensions.

additionalVertical

Value to add to the top and bottom dimensions.

@Composable()
inline fun WindowInsets.Type.toPaddingValues(start: Boolean = true, top: Boolean = true, end: Boolean = true, bottom: Boolean = true, additionalStart: Dp = 0.dp, additionalTop: Dp = 0.dp, additionalEnd: Dp = 0.dp, additionalBottom: Dp = 0.dp): PaddingValues

Returns the current insets converted into a PaddingValues.

Parameters

start

Whether to apply the inset on the start dimension.

top

Whether to apply the inset on the top dimension.

end

Whether to apply the inset on the end dimension.

bottom

Whether to apply the inset on the bottom dimension.

additionalStart

Value to add to the start dimension.

additionalTop

Value to add to the top dimension.

additionalEnd

Value to add to the end dimension.

additionalBottom

Value to add to the bottom dimension.