dart_ioc 1.0.1 copy "dart_ioc: ^1.0.1" to clipboard
dart_ioc: ^1.0.1 copied to clipboard

An IoC container implementation for dart and flutter with support for types, singletons, factory methods and merging of containers.

pipeline status coverage report

A simple IoC Container for Dart.

Usage #

A simple usage example:

import 'package:dart_ioc/dart_ioc.dart';

main() {
  var container = new Container()
    .register<A>
    .registerSingleton(Stream.value(100));

  var stream = container.resolve<Stream>()  
}

See also examples for detailed examples.

Features and bugs #

Please file feature requests and bugs at the issue tracker.

1
likes
40
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

An IoC container implementation for dart and flutter with support for types, singletons, factory methods and merging of containers.

Homepage
Repository (GitLab)
View/report issues

Documentation

Documentation

License

MIT (license)

More

Packages that depend on dart_ioc