this is the function i'm trying to import https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density#(androidx.compose.ui.unit.DpRect).toRect()
here is my code
val cardWidth = 180f.dp
val cardHeight = 270f.dp
val fullHeight = 296f.dp
val focusRect = DpRect(0f.dp, 0f.dp, cardWidth, fullHeight).toRect()
i have tried importing like
import androidx.compose.ui.unit.Density.toRect
import androidx.compose.ui.unit.toRect
import androidx.compose.ui.unit.DpRect.toRect
but non of them works.