ioc 0.3.0 copy "ioc: ^0.3.0" to clipboard
ioc: ^0.3.0 copied to clipboard

discontinued

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 [...]

example/ioc_example.dart

import 'package:ioc/ioc.dart';

class A {
  void someMethod()
  {

  }
}
class B {}

main() {
  Ioc().bind('A', (ioc) => new A());

  Ioc().use<A>('A').someMethod();
}
6
likes
30
pub points
45%
popularity

Publisher

unverified uploader

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.

Repository (GitHub)
View/report issues

License

MIT (license)

More

Packages that depend on ioc