vader_di 0.3.0 vader_di: ^0.3.0 copied to clipboard
A simple dependency injection library for personal needs inspired by C# ninject fluent builder style.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add vader_di
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
vader_di: ^0.3.0
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:vader_di/resolvers/di_resolver.dart';
import 'package:vader_di/resolvers/factory_resolver.dart';
import 'package:vader_di/resolvers/resolvers.dart';
import 'package:vader_di/resolvers/resolving_context.dart';
import 'package:vader_di/resolvers/singleton_resolver.dart';
import 'package:vader_di/resolvers/value_resolver.dart';
import 'package:vader_di/vader.dart';