source

inline fun <T : Any> Canvas.source(qualifier: String? = null): T(source)

Inline extension function to retrieve a dependency using reified type parameters.

Return

An instance of the requested type

Parameters

qualifier

An optional name distinguishing bindings of the same type

Type Parameters

T

The type of the dependency to retrieve

Throws

if neither explicit bindings nor the resolver supply the key