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