has<T> method

bool has<T>([
  1. String name = ''
])

Returns true if the service is registered in the container

Implementation

bool has<T>([String name = '']) => _map.containsKey(Key<T>(name));