Skip to content

Instantly share code, notes, and snippets.

@dilrajsingh1997
Created December 2, 2021 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilrajsingh1997/a5434b6b46471b7c0a5e759ba1da8e09 to your computer and use it in GitHub Desktop.
Save dilrajsingh1997/a5434b6b46471b7c0a5e759ba1da8e09 to your computer and use it in GitHub Desktop.
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