weave_di 3.4.1
weave_di: ^3.4.1 copied to clipboard
Dependency injection and typed routing for Flutter in one package. Scopes, parameterized factories, circular-dependency detection, route guards, middleware and transitions. No code generation.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add weave_diThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
weave_di: ^3.4.1Alternatively, 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:weave_di/weave_di.dart';