getService<T extends Object> method

T? getService<T extends Object>()

get the service by type

Implementation

T? getService<T extends Object>() => _services[T] as T;