dartrocket_container 0.0.1-alpha dartrocket_container: ^0.0.1-alpha copied to clipboard
A simple yet powerful IoC Container for DartRocket. Its based on namespacing your objects so you can easily get their instance after.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add dartrocket_container
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
dartrocket_container: ^0.0.1-alpha
Alternatively, your editor might support dart pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dartrocket_container/dartrocket_container.dart';