Vicodin

pub

Vicodin is a very simple and yet very useful pure Dart dependency container.

Getting Started

final module = moduleOf((r) {
  r.singleton<Person>((c) => Person("Vicodin"));
});
final component = componentOf(import: [module]);

final Person person1 = component.resolve<Person>();
final Person person2 = component.resolve<Person>();
expect(identical(person1, person2), true);

Libraries

component
delegates
module
registrar
resolver
shotcuts
vicodin