createForTag method
Creates a T
instance for a tag
.
If instance of T
exists in singleton map it will return it
without creation of new.
Implementation
@override
T? createForTag(String? tag) {
if (!taggedSingletons.containsKey(tag)) {
return null;
}
return taggedSingletons[tag];
}