exists<T> method

bool exists<T>([
  1. String? key
])

Checks if an interface with the given Type T and key exists.

Implementation

bool exists<T>([String? key]) {
  return _interfaces[InterfaceKey<T>(key)] != null;
}