inject_compile 0.9.0 copy "inject_compile: ^0.9.0" to clipboard
inject_compile: ^0.9.0 copied to clipboard

Compile-time dependency injection for Dart

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add inject_compile

With Flutter:

 $ flutter pub add inject_compile

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

dependencies:
  inject_compile: ^0.9.0

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:inject_compile/inject_compile.dart';
2
likes
140
points
5
downloads

Documentation

API reference

Publisher

verified publisherdropbear.dev

Weekly Downloads

Compile-time dependency injection for Dart

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

meta

More

Packages that depend on inject_compile