remove<T> method

void remove<T>()

Un-registrates the last added service under the given type parameter, and calls the onDispose() method if service is Disposables

Implementation

void remove<T>() {
  final service = get<T>();
  _servicesMap.remove(T.toString());
  _disposeQueue.send(service);
}