-
-
Save landarskiy/9109a2148871adb117a38eb1e03fa8e3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public sealed class GridPadCellSize { | |
public data class Fixed(val size: Dp) : GridPadCellSize() { | |
init { | |
check(size.value > 0) { "size have to be > 0" } | |
} | |
} | |
public data class Weight(val size: Float = 1f) : GridPadCellSize() { | |
init { | |
check(size > 0) { "size have to be > 0" } | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment