unregister<T> method
Unregister a service type
Implementation
@override
void unregister<T>() {
if (!has<T>()) {
throw Exception(
'A service for the type _ExampleService is not registered',
);
}
_registrations.remove(T);
}