source

inline fun <T : Any> Canvas.source(): T(source)

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

Return

An instance of the requested type

Type Parameters

T

The type of the dependency to retrieve

Throws

if no instance is registered for the type