dart_ioc 1.0.1 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.
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.