modularity_get_it 0.0.1
modularity_get_it: ^0.0.1 copied to clipboard
GetIt adapter for Modularity.
modularity_get_it #
GetIt adapter for the Modularity framework. Allows using GetIt as the backing DI container.
Features #
- GetItBinder: Implementation of
Binderthat delegates to GetIt. - GetItBinderFactory: Factory to create GetIt binders.
- Scoped & Global: Supports both new GetIt instances per scope or sharing the global instance.
Usage #
import 'package:modularity_core/modularity_core.dart';
import 'package:modularity_get_it/modularity_get_it.dart';
void main() {
// Use GetIt as the DI container
final factory = GetItBinderFactory();
final binder = factory.create();
final module = MyModule();
module.binds(binder);
}