isShared method

bool isShared(
  1. Type type
)

True when type gives the same instance every time.

Implementation

bool isShared(Type type) {
  return _bindings[type]?.shared ?? false;
}