setProvider method
void
setProvider(
- T? provider
Call this function to set the current provider to inject into fields
with an @EzDIProvider
configured with this resolver.
Implementation
void setProvider(T? provider) {
T? previousProvider = this._current;
this._current = provider;
if (previousProvider != null) {
this._current?.hookDetachedFromResolver();
}
provider?.hookAttachedToResolver();
}