dart_container 1.0.11 copy "dart_container: ^1.0.11" to clipboard
dart_container: ^1.0.11 copied to clipboard

Injection container and app server for Dart. Provides functionality similar to Java's Spring dependency injection and appserver.

example/dart_container_example.dart

import 'package:dart_container/dart_container.dart';

void main() {
  $().generic<String>(object: "Test");
  $().generic<String>(object: "Test2", name: "other");
  print('Getting by class unchecked: ${$get<String>()}');
  print('Getting by qualifier unchecked: ${$get<String>(name: "other")}');
  print('Getting nullable: ${$$get<int>()}');
}
1
likes
160
points
87
downloads

Publisher

unverified uploader

Weekly Downloads

Injection container and app server for Dart. Provides functionality similar to Java's Spring dependency injection and appserver.

Repository (GitHub)
View/report issues

Documentation

API reference

License

LGPL-3.0 (license)

Dependencies

dart_router_extended

More

Packages that depend on dart_container