void addSingleton<T>(Function constructor, {String? key}) { _injector.addSingleton<T>(constructor); }