decorate method
Replaces the service factory associated with the given service type with the result of
transform
.
Implementation
void decorate(Type serviceType,
ServiceFactory Function(ServiceFactory?) transform) =>
serviceFactories[serviceType] = transform(serviceFactories[serviceType]);