get_it_injector 0.1.1 copy "get_it_injector: ^0.1.1" to clipboard
get_it_injector: ^0.1.1 copied to clipboard

Automate class registration for dependency injection using `get_it`, Simplify and manage dependencies effortlessly in Dart projects.

Pub Package

get_it_injector #

get_it_injector is an annotation package designed to simplify and enhance the registration of classes for dependency injection using the get_it package in Dart. It provides annotations that facilitate the generation of code to register factories, singletons, and lazy singletons, allowing for streamlined dependency management.

Features #

  • Flexible Registration: Annotate your classes to easily configure whether they should be registered as factories, singletons, or lazy singletons, giving you control over how instances are managed by get_it.

  • Order of Injection: Define class name patterns to determine the order of injection, providing a priority system for injecting classes in a specific sequence.

  • Grouping: Organize injectables into groups, each with its own priority, to further customize the injection order and manage dependencies more effectively.

Read more about how to use get_it_injector in get_it_injector_gen.

License #

License This software is released under the Apache 2.0 license. https://www.apache.org/licenses/LICENSE-2.0

0
likes
130
pub points
74%
popularity

Publisher

unverified uploader

Automate class registration for dependency injection using `get_it`, Simplify and manage dependencies effortlessly in Dart projects.

Repository (GitHub)
View/report issues
Contributing

Topics

#dependency-injection #get-it #di #code-generation

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

meta

More

Packages that depend on get_it_injector