unregister<T> method

  1. @override
void unregister<T>()
override

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);
}