getInstances<T> method

Set<T> getInstances<T>([
  1. Spec? spec
])

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