createScopedProxy method
Creates the scoped proxy: an object of the bean's type that forwards
every call to the instance target returns at that moment. The
container calls it once per bean.
Implementation
Object createScopedProxy(Object Function() target) =>
_scopedProxy!(() => target() as T);