windowInsets

fun windowInsets(isEdgeToEdgeEnabled: Boolean): WindowInsets

Returns the appropriate window insets for the BottomSheet based on whether edge-to-edge mode is enabled.

Return

WindowInsets with appropriate values based on the edge-to-edge mode.

Parameters

isEdgeToEdgeEnabled

Boolean indicating if edge-to-edge mode is enabled.