# di **Repository Path**: SimpleZero/di ## Basic Information - **Project Name**: di - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-26 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Dart Dependency Injection **Getting Started** 1/ Binding: class TestModule extends AbstractModule { @override void init() { bind(String).to("A String Instance"); bind(int).to(404); bind(TestClass).to(new TestClass(this.get(String))); bind("AnotherTestClass").to(new TestClass("AnotherTestClass")); } } 2/ Use your DI void main() { DI.init([new TestModule()]); String str = DI.get(String); expect(str, equals("A String Instance")); }