getInstances<T> method
Implementation
Set<T> getInstances<T>([Spec? spec]) {
spec ??= TypeSpec(T);
var instances = _fromCache<T>(spec);
if (instances == null) {
instances = _createInstances<T>(spec);
_addToCache<T>(spec, instances);
}
return instances;
}