flutter_ioc_container 1.0.12 flutter_ioc_container: ^1.0.12 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: ^1.0.12
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';