Skip to main content

dependency_box 1.2.2 copy "dependency_box: ^1.2.2" to clipboard
dependency_box: ^1.2.2 copied to clipboard

A high-performance, lightweight, and zero-dependency inversion-of-control (IoC) container and dependency injection box for Dart and Flutter

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add dependency_box

With Flutter:

 $ flutter pub add dependency_box

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  dependency_box: ^1.2.2

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:dependency_box/dependency_box.dart';
5
likes
160
points
1.07k
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A high-performance, lightweight, and zero-dependency inversion-of-control (IoC) container and dependency injection box for Dart and Flutter

Repository (GitHub)
View/report issues

Topics

#dependency-injection #service-locator #ioc #container #utilities

Funding

Consider supporting this project:

github.com
buymeacoffee.com

License

MIT (license)

More

Packages that depend on dependency_box