finject_flutter 0.3.2 finject_flutter: ^0.3.2 copied to clipboard
Package contains required classes and widgets for DI. It use code generated by finject_generator module
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add finject_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
finject_flutter: ^0.3.2
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:finject_flutter/finject_flutter.dart';