add<T> method
Register a service
Implementation
void add<T>(T Function() factory,
{String? tag, bool lazy = false, bool singleton = true}) {
_services[_key(T, tag)] = _Service<T>(
factory: factory,
singleton: singleton,
instance: !singleton || lazy ? null : factory(),
);
}