kiss_dependencies 1.3.0 copy "kiss_dependencies: ^1.3.0" to clipboard
kiss_dependencies: ^1.3.0 copied to clipboard

A lightweight dependency injection package for Dart that follows the KISS (Keep It Simple, Stupid) principle.

example/kiss_dependencies_example.dart

import 'package:kiss_dependencies/kiss_dependencies.dart';

void main() {
  register<String>('Hello world');
  print(resolve<String>());

  register<ObjectFactory<String, String>>(
    ObjectFactory<String, String>(
      (context) => 'Hello $context',
    ),
  );

  print(resolve<ObjectFactory<String, String>>().build('Monkey'));
}
2
likes
140
points
116
downloads

Publisher

verified publisherwearemobilefirst.com

Weekly Downloads

A lightweight dependency injection package for Dart that follows the KISS (Keep It Simple, Stupid) principle.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

get_it

More

Packages that depend on kiss_dependencies