createForTag method

  1. @override
T? createForTag(
  1. String? tag
)
override

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];
}