vader_di 1.2.0 vader_di: ^1.2.0 copied to clipboard
A simple, flexible and platform agnostic Dependency Injection library with convenient syntax.
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: ^1.2.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/custom_factory_resolver.dart';
import 'package:vader_di/resolvers/di_resolver.dart';
import 'package:vader_di/resolvers/disposable_custom_factory_resolver.dart';
import 'package:vader_di/resolvers/factory_resolver.dart';
import 'package:vader_di/resolvers/helpers/creating_resolving_methods.dart';
import 'package:vader_di/resolvers/helpers/custom_factories_methods.dart';
import 'package:vader_di/resolvers/helpers/custom_factory.dart';
import 'package:vader_di/resolvers/helpers/lifetime_resolving_methods.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';