sourceOrNull
Retrieves an instance of the registered object Returns null if the object isn't found
Return
The resolved dependency
Parameters
type
The KClass of the object
qualifier
an optional qualifier for the type
Type Parameters
T
the type of the registered object
Retrieves an instance under CanvasKey, checking explicit local and ancestor bindings before the optional CanvasDependencyResolver. Returns null only when absent; resolver ambiguity, creation and scope failures propagate.
Return
The resolved dependency
Parameters
key
the key the object is registered under
Type Parameters
T
the type of the registered object