getDependency method
S
getDependency()
Gets the actual instance by its builderFunc or the persisted instance.
Implementation
S getDependency() {
if (isSingleton ?? false) {
if (dependency case final dep?) {
return dep;
}
_showInitLog();
return dependency = builderFunc();
}
return builderFunc();
}