syringe 0.9.8-pre
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 syringeWith Flutter:
$ flutter pub add syringeThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
syringe: ^0.9.8-preAlternatively, 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';