-
-
Save dilrajsingh1997/a5434b6b46471b7c0a5e759ba1da8e09 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
file addLine "val ${className}_${propertyInfo.propertyName.replaceFirstChar { it.uppercase() }}NavType: NavType<" | |
addVariableType(file, propertyInfo) | |
file addPhrase "> = object : NavType<" | |
addVariableType(file, propertyInfo) | |
file addPhrase ">(false) {" | |
tabs++ | |
file addLine "override val name: String" | |
tabs++ | |
file addLine "get() = " | |
file addPhrase "\"${propertyInfo.propertyName}\"" | |
tabs-- | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment