syringe 0.9.8-pre copy "syringe: ^0.9.8-pre" to clipboard
syringe: ^0.9.8-pre copied to clipboard

Syringe is a dependency injection (DI) library for Dart applications.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add syringe

With Flutter:

 $ flutter pub add syringe

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

dependencies:
  syringe: ^0.9.8-pre

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:syringe/syringe.dart';
1
likes
160
points
4
downloads

Publisher

unverified uploader

Weekly Downloads

Syringe is a dependency injection (DI) library for Dart applications.

Repository (GitHub)
View/report issues

Topics

#di #dependency

Documentation

API reference

License

MIT (license)

Dependencies

meta

More

Packages that depend on syringe