scope_injector 1.0.1
scope_injector: ^1.0.1 copied to clipboard
A Dependency Injection library, that provides a simple way to manage your dependencies.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add scope_injector
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
scope_injector: ^1.0.1
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:scope_injector/entry_point.dart';
import 'package:scope_injector/flutter_scope.dart';
import 'package:scope_injector/provider.dart';
import 'package:scope_injector/scoped_state.dart';
import 'package:scope_injector/subscription_handler.dart';