ServiceLocatorHelper class

Constructors

ServiceLocatorHelper(ServiceLocator _serviceLocator, [String? environment, EnvironmentFilter? environmentFilter])

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerFactory<T extends Object>(FactoryFunc<T> factoryFunc, {String? instanceName, Set<String>? registerFor}) → void
registerFactoryAsync<T extends Object>(FactoryFuncAsync<T> factoryfunc, {String? instanceName, bool preResolve = false, Set<String>? registerFor}) Future<void>
registerLazySingleton<T extends Object>(FactoryFunc<T> factoryFunc, {String? instanceName, Set<String>? registerFor, DisposeFunc<T>? dispose}) → void
registerLazySingletonAsync<T extends Object>(FactoryFuncAsync<T> factoryFunc, {String? instanceName, bool preResolve = false, Set<String>? registerFor, DisposeFunc<T>? dispose}) Future<void>
registerSingleton<T extends Object>(FactoryFunc<T> factoryFunc, {String? instanceName, Set<String>? registerFor, DisposeFunc<T>? dispose}) → void
registerSingletonAsync<T extends Object>(FactoryFuncAsync<T> factoryFunc, {String? instanceName, bool preResolve = false, Set<String>? registerFor, DisposeFunc<T>? dispose}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited