ServiceFactory<TService extends Object> typedef

ServiceFactory<TService extends Object> = TService Function(ServiceProvider provider)

A factory for creating services of specified type using ServiceProvider.

Implementation

typedef ServiceFactory<TService extends Object> = TService Function(
  ServiceProvider provider,
);