delete<S> static method
Removes the registration for S and disposes of the instance.
If the instance implements LevitScopeDisposable, its onClose method is called.
Parameters:
tag: The unique identifier used during registration.force: Iftrue, deletes even if the dependency was marked aspermanent.
Returns true if a registration was found and removed.
Implementation
static bool delete<S>({String? tag, bool force = false}) {
return currentScope.delete<S>(tag: tag, force: force);
}