-
-
Save vinaygaba/0839371980126a6cd4e33afeb282ac47 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
inline fun <T : Any> Modifier.ifNotNull(value: T?, builder: (T) -> Modifier): Modifier = | |
then(if (value != null) builder(value) else Modifier) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment