lookup function

Object? lookup(
  1. Object key
)

Look up an item by it's key in the currently active service scope.

Returns null if there is no entry with the given key.

Implementation

Object? lookup(Object key) {
  var serviceScope = _serviceScope;
  if (serviceScope == null) {
    throw StateError('Not running inside a service scope zone.');
  }
  return serviceScope.lookup(key);
}