<@U0JRS2YUB> I have a pattern that I use for extra...
# android
k
@sreich I have a pattern that I use for extras that looks something like this:
Copy code
class TargetActivity {
    val myExtra by extra<String>()
}

//call site:
intent.putExtra(TargetActivity::myExtra.name, myValue)
As you can see, the name of the property is never referenced as string. of course that doesn't enforce putting the correct type (or a value at all) in the intent. For the
extra()
delegate, there are a couple of open source solutions or you can throw one together yourself in 5 minutes.