make<T> method

T make<T>(
  1. T clazz()
)

Implementation

T make<T>(T Function() clazz) {
  _services[T] = clazz();
  return _services[T];
}