Colton Idle
08/22/2023, 2:06 PMconst val SOME_KEY_NAME = "MY_KEY_NAME"
cons... pollutes everywhere else having access to this?
Option B:
companion object {
const val SOME_KEY_NAME = "MY_KEY_NAME"
}
cons... people seem to look down upon companion objects. is there a way to just share the key name privately in the class?Colton Idle
08/23/2023, 12:48 PM