add<T> method
Register a service in the current scope
Implementation
void add<T>(T Function() factory,
{String? tag, bool lazy = false, bool singleton = true}) {
current.add<T>(factory, tag: tag, lazy: lazy, singleton: singleton);
}