isRegistered method
Checks if a key is registered.
Returns true if the key exists in the registry, false otherwise.
Thread-safe: This operation is synchronized.
Implementation
bool isRegistered(String key) =>
synchronized(() => _handlers.containsKey(key));