dart_container 1.0.7
dart_container: ^1.0.7 copied to clipboard
Injection container and app server for Dart. Provides functionality similar to Java's Spring dependency injection and appserver, with scheduled tasks support and conditional callbacks for container objects.
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>()}');
}