🔧
Easy to Use
Lightweight and straightforward API. Define providers, create modules, and resolve dependencies in just a few lines of code.
Lightweight, modular dependency injection. Define providers, compose modules, and let Dependy wire it all together.
import 'package:dependy/dependy.dart';
final module = DependyModule(
providers: {
DependyProvider<CounterService>(
(_) => CounterService(),
),
},
);
final counter = await module<CounterService>();
counter.increment();
print(counter.count); // 1