flutter_ioc_container 2.0.2-beta flutter_ioc_container: ^2.0.2-beta copied to clipboard
A lightweight, flexible, and high-performance dependency injection and service location library for Flutter
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add flutter_ioc_container
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_ioc_container: ^2.0.2-beta
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:flutter_ioc_container/flutter_ioc_container.dart';