dart_container 1.0.11
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>()}');
}