INNER CODE UNIT · Kotlin

gap

IacobIonut01/ReFra · commonMain/androidx/compose/foundation/layout/Grid.kt:836

    override fun gap(row: Dp, column: Dp) {
        require(row.value >= 0f) { "Row gap must be non-negative" }
        require(column.value >= 0f) { "Column gap must be non-negative" }
        rowGap = row
        columnGap = column
    }

    override fun columnGap(gap: Dp) {
        require(gap.value >= 0f) { "Column gap must be non-negative" }
        columnGap = gap
    }

    override fun rowGap(gap: Dp) {
        require(gap.value >= 0f) { "Row gap must be non-negative" }
        rowGap = gap
    }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…