source

suspend fun <T : Any> source(key: CanvasKey<T>): T(source)

Resolves a required dependency during eager Canvas construction. Local bindings are resolved first. If this canvas does not contain key, lookup falls back through explicit parent bindings, then the optional CanvasDependencyResolver. Construction is eager, so parent-owned instances are reused and child overrides do not rewire services already created by the parent.

Return

The created dependency instance

Parameters

key

The canvas key identifying the dependency

Type Parameters

T

The type of the dependency


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

Resolves a required dependency during construction using reified type parameters.

Return

The created dependency instance

Parameters

qualifier

Optional qualifier to distinguish between multiple instances

Type Parameters

T

The type of the dependency