modular_core library

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 the get() method.

BindConfig<T>
Disposable
A class which implements Disposable can be disposed automatically once user leaves a Module
Injector
Register and get binds
LayersGraph
Middleware<T>
Object that intercepts a route request.
ModularArguments
Object that clusters all arguments and parameters retrieved or produced during a route search.
ModularKey
ModularRoute
Module
NamedParam
Param
PositionalParam
RouteManager
Tracker

Properties

printResolverFunc ↔ void Function(String text)?
getter/setter pair

Functions

changeParam<T>(T newValue) ParamTransform
setPrintResolver(void fn(String text)) → void

Typedefs

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
ModularError
TrackerNotInitiated
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