The most simple IoC Container of Dart and Flutter
If you looking for a package that is light-weight and provide production-ready of inversion of control, then this package is right for you.
This packa [...]
import 'package:ioc/ioc.dart';
class A {
void someMethod()
{
}
}
class B {}
main() {
Ioc().bind('A', (ioc) => new A());
Ioc().use<A>('A').someMethod();
}
The most simple IoC Container of Dart and Flutter
If you looking for a package that is light-weight and provide production-ready of inversion of control, then this package is right for you.
This package provides only 2 main api, easy to learn and use, but definitely fits most use case in your flutter project.
If you are a server developer developing small or medium scale project, it's very likely you want to use this package. However, large scale project may need more powerful heavy-weight IoC library.
You **can** use it in your angular project, but we highly recommend you use dependency injection system provided by angular.