injectable_micropackages
library
Classes
-
Environment
-
Used to annotate dependencies which are
registered under certain environments
-
EnvironmentFilter
-
filter for whether to register for the given set of environments
clients can extend this class to maker
their own environmentFilters
-
FactoryMethod
-
Marks a factory, a named constructor or a static create
function as an injectable constructor
if not added the default constructor will be used.
-
FactoryParam
-
Marks a constructor param as
factoryParam so it can be passed
to the resolver function
-
GetItHelper
-
a helper class to handle conditional registering
-
Injectable
-
Marks a class as an injectable
dependency and generates
-
InjectableInit
-
Marks a top-level function as an initializer function
for configuring Get_it
-
LazySingleton
-
Classes annotated with @LazySingleton
will generate registerLazySingleton func
-
MicroPackage
-
Annotation that flags the existence of a micropackage module
-
MicroPackageRootInit
-
If used, micropackage support is enabled.
The generation will assume
that current library is the 'root', or
actually the application that encloses multiple micro libraries.
This annotation extends InjectableInit,
therefore only one of them should be used
-
Module
-
marks a class as a register module where all
property accessors rerun types are considered factories
unless annotated with @singleton/lazySingleton.
-
Named
-
Used to register a dependency under a name
instead of type also used to annotated
named injected dependencies in constructors
-
NoEnvOrContains
-
This filter validates dependencies with no environment
keys or contain the provided
environment
-
NoEnvOrContainsAll
-
This filter validates dependencies with no environment
keys, or the ones containing all the provided environments
-
NoEnvOrContainsAny
-
This filter validates dependencies with no environment
keys, or the ones containing one of the provided environments
-
PreResolve
-
Futures annotated with preResolve
will be pre-awaited before they're
registered inside of GetIt
-
SimpleEnvironmentFilter
-
A simple filter that can be used directly for simple use cases
without having to extend the base EnvironmentFilter
-
Singleton
-
Classes annotated with @Singleton
will generate registerSingleton function