vicodin 1.0.5 copy "vicodin: ^1.0.5" to clipboard
vicodin: ^1.0.5 copied to clipboard

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

Vicodin #

pub build license

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

Getting Started #

/// register a module with a set of dependencies 
final module = moduleOf((r) {
  r.singleton<Person>((c) => Person("Vicodin"));
});

/// combine a few modules to a single component
final component = componentOf(import: [module]);

/// get the required dependency from the component
final Person person1 = component.resolve<Person>();
final Person person2 = component.resolve<Person>();
expect(identical(person1, person2), true);
9
likes
130
pub points
52%
popularity

Publisher

verified publisherglynskyi.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

More

Packages that depend on vicodin