dart_ddi
library
Classes
CustomBuilder <BeanT extends Object >
CustomBuilder is a class that represents how a Bean should be created.
It is used to create a Bean after the registration in the DDI system.
DDI
DDI is an abstract class representing a Dependency Injection system.
It provides methods for managing beans.
DDIEvent
This class provides methods for subscribing and unsubscribing to events
and for dispatching events with optional qualifiers.
DDIInterceptor <BeanT extends Object >
Abstract class representing an interceptor for the Dart Dependency Injection (DDI) Library.
DDIStream
DDIStream is an abstract class representing a stream.
It provides methods for subscribing and unsubscribing to streams
and for dispatching streams with optional qualifiers.
EventLock
A simple class to manage locking events, ensuring only one event is processed at a time.
ScopeFactory <BeanT extends Object >
ScopeFactory is a class that represents a Bean and its state.
It is used for the registration of Beans in the DDI system.
Mixins
DDIComponentInject <ComponentT extends Object , ModuleT extends DDIModule >
Helper to make easy to Inject a Component instance
DDIEventSender <EventStateType extends Object >
Mixin used to send events.
EventStateType
The type of the event.
DDIInject <InjectType extends Object >
Helper to make easy to Inject one instance
DDIInjectAsync <InjectType extends Object >
Helper to make easy to Inject one instance
DDIModule
Mixin to make it easy to create modules
DDIStreamSender <StreamStateType extends Object >
Mixin used to send stream events.
StreamStateType
The type of the stream.
PostConstruct
Mixin to help to execute some code after the instance is constructed
PreDestroy
Mixin to help to execute some code before the instance is destroyed
PreDispose
Mixin to help to execute some code before the instance is disposed
Extensions
DDIGetExtension
on DDI
Extension for DDI to retrieve instances of registered classes.
DDIRegisterExtension
on DDI
P0
on BeanT Function()
P1
on BeanT Function(A )
P10
on BeanT Function(A , B , C , D , E , F , G , H , I , J )
P2
on BeanT Function(A , B )
P3
on BeanT Function(A , B , C )
P4
on BeanT Function(A , B , C , D )
P5
on BeanT Function(A , B , C , D , E )
P6
on BeanT Function(A , B , C , D , E , F )
P7
on BeanT Function(A , B , C , D , E , F , G )
P8
on BeanT Function(A , B , C , D , E , F , G , H )
P9
on BeanT Function(A , B , C , D , E , F , G , H , I )
PF0
on Future <BeanT > Function()
PF1
on Future <BeanT > Function(A )
PF10
on Future <BeanT > Function(A , B , C , D , E , F , G , H , I , J )
PF2
on Future <BeanT > Function(A , B )
PF3
on Future <BeanT > Function(A , B , C )
PF4
on Future <BeanT > Function(A , B , C , D )
PF5
on Future <BeanT > Function(A , B , C , D , E )
PF6
on BeanT Function(A , B , C , D , E , F )
PF7
on Future <BeanT > Function(A , B , C , D , E , F , G )
PF8
on Future <BeanT > Function(A , B , C , D , E , F , G , H )
PF9
on Future <BeanT > Function(A , B , C , D , E , F , G , H , I )
Properties
ddi
↔ DDI
Shortcut for getting the shared instance of the DDI class.
The DDI class provides methods for managing beans.
getter/setter pair
ddiEvent
↔ DDIEvent
Shortcut for getting the shared instance of the DDIEvent class.
The DDIEvent class provides methods for subscribing and unsubscribing to events.
getter/setter pair
ddiStream
↔ DDIStream
Shortcut for getting the shared instance of the DDIStream class.
The DDIStream class provides methods for subscribing, closing
and dispatching streams with optional qualifiers.
getter/setter pair