If I have a constructor with default values how ca...
# dagger
w
If I have a constructor with default values how can I make it so dagger doesn't try and inject those fields?
g
you cannot do this
Just create secondary constructor with only required values and annotate this constructor with @Inject annotation
w
hmm ok thanks
g
so this secondary constructor will delegate to primary and default field values will be used
t
g
AssistedInject will not help with default arguments it has different use case
3