remove<T> static method

bool remove<T>({
  1. String? tag,
  2. bool force = false,
})

Alias for delete. Removes a dependency from the container.

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

Example:

Zen.remove<UserService>();

Implementation

static bool remove<T>({String? tag, bool force = false}) =>
    delete<T>(tag: tag, force: force);