vicodin

Creator: coderz1093

Last updated:

0 purchases

vicodin Image
vicodin Images

Languages

Categories

Add to Cart

Description:

vicodin

Vicodin #



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);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.