-
-
Save aaronjyoder/5443f0da5765c1892fcbb199ff415737 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
class MyViewModel { | |
private val selectedRegions: MutableState<ArrayDeque<Point>> = mutableStateOf(ArrayDeque()) | |
private val selectedTerritories: MutableState<MutableSet<Territory>> = mutableStateOf(HashSet()) | |
fun isSelectingRegion: Boolean { | |
return selectedRegions.value.size > 0 | |
} | |
fun isSelectingTerritory: Boolean { | |
return selectedTerritories.value.size > 0 | |
} | |
// Other functions | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment