unregister<T extends Object> abstract method

void unregister<T extends Object>({
  1. String? name,
})

Removes the instance of the specified type from the DI container.

If a name is provided, it removes the named instance of the type T.

Implementation

void unregister<T extends Object>({String? name});