has<T> static method

bool has<T>({
  1. String? tag,
})

Alias for exists. Checks if a dependency exists in the container.

This is a convenience alias that provides consistent verb naming across the Zenify API (get/put/remove/has).

Example:

if (Zen.has<UserService>()) { ... }

Implementation

static bool has<T>({String? tag}) => exists<T>(tag: tag);