toor_test library

Classes

ResettableLocator
The interface that all resettable locators implement.
Toor
A simple service locator manager that lets you register compile-time safe factories and lazy singletons.
ToorLocator<T>
Used for interacting with factories or singletons registered with Toor.
ToorLocatorAsync<T>
The class for using async factories registered with Toor.
ToorLocatorAsyncWithOneParameter<T, P1>
Used for interacting with factories or singletons registered with Toor.
ToorLocatorAsyncWithTwoParameters<T, P1, P2>
Used for interacting with factories or singletons registered with Toor.
ToorLocatorBase
The base for all types of locators.
ToorLocatorWithOneParameter<T, P1>
Used for interacting with factories or singletons registered with Toor.
ToorLocatorWithTwoParameters<T, P1, P2>
Used for interacting with factories or singletons registered with Toor.

Typedefs

FactoryFunc<T> = T Function()
Signature for factory and lazy singleton creator functions.
FactoryFuncAsync<T> = Future<T> Function()
Signature for asynchronous factories.
FactoryFuncAsyncWithOneParameter<T, P1> = Future<T> Function(P1 param1)
Signature for one-parameter async factory creator functions.
FactoryFuncAsyncWithTwoParameters<T, P1, P2> = Future<T> Function(P1 param1, P2 param2)
Signature for two-parameter async factory creator functions.
FactoryFuncWithOneParameter<T, P1> = T Function(P1 param1)
Signature for one-parameter factory and lazy singleton creator functions.
FactoryFuncWithTwoParameters<T, P1, P2> = T Function(P1 param1, P2 param2)
Signature for two-parameter factory and lazy singleton creator functions.