auto_injector library
This code is managed by the auto_injector package.
It is responsible for automatically injecting dependencies into the application.
The generated code ensures that all required dependencies are properly initialized
and available for use throughout the application lifecycle.
Classes
- AutoInjector
-
Automatic Dependency Injection System, but without build_runner :)
[tag]: AutoInject instance identity.
[on]: Helps with instance registration.
[paramObservers]: List of functions that listen and transform parameters while they are being parsed when requested by theget()method.
-
Bind<
T> -
BindConfig<
T> - Injector
- Register and get binds
- LayersGraph
- NamedParam
- Param
- PositionalParam
Enums
Functions
-
changeParam<
T> (T newValue) → ParamTransform
Typedefs
-
DisposeCallback<
T> = void Function(T value) -
NotifierCallback<
T> = dynamic Function(T value) - ParamTransform = Param? Function(Param param)
Exceptions / Errors
- AutoInjectorException
-
AutoInjection Exception with ToString auto configured
message : message of exception
stackTrace : traces of exception - InjectorAlreadyCommited
-
AutoInjecton Exception for Injector Already Commited.
Store all parent classNames message : message of exception
stackTrace : traces of exception
injectorTag : tag of the current injector - UnregisteredInstance
-
AutoInjection Exception for Unregistered instance.
Store all parent classNames message : message of exception
stackTrace : traces of exception
classNames : all parent class names - UnregisteredInstanceByKey
-
AutoInjection Exception for Unregistered instance.
Store all parent classNames message : message of exception
stackTrace : traces of exception
- UpwardResolutionCycle
-
AutoInjection Exception thrown when an
addInjector(..., resolveUpward: true)edge would create a cycle in the upward (ancestor) resolution chain.
Upward resolution must form a tree: a child resolves against its ancestor as a fallback, never the other way around. A mutual upward link would make resolution recurse forever, so it is rejected eagerly at composition time.
injectorTag : tag of the injector at which the cycle was detected