Is there any way to have Dagger 2 `@Inject` depend...
# dagger
r
Is there any way to have Dagger 2
@Inject
dependencies on a function such as that compile time verified instances are injected in the function at runtime on demand without wrapping it all in a
class Container @Inject construtor(val dep: Dep) {...}
? Something along the lines of
Copy code
fun doStuff(@Inject val dep: Dep): Int = TODO()
doStuff()